code: private TrustManager[] createTrustManagers() throws ClientSslSocketFactoryException {
  
      	final TrustManagerFactory factory;
  
      	try {
      		factory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
      		factory.init(this.trustStore);
      	} catch (NoSuchAlgorithmException e) {
      		throw new ClientSslSocketFactoryException(String.format("Failed to create the trust store because the algorithm %s is not supported. ",
      				KeyManagerFactory.getDefaultAlgorithm()), e);
      	} catch (KeyStoreException e) {
      		throw new ClientSslSocketFactoryException("KeyStore exception initializing trust manager factory; this is probably fatal", e);
      	}
  
      	final TrustManager[] managers = factory.getTrustManagers();
  
      	LOGGER.debug("TrustManagers are initialized. Total {} managers: ", managers.length);
  
      	return managers;
  
      }
docs: Creates the trust managers to be used by the factory from the specified trust store file and
  password.
  
  @return the newly created array of trust managers
  @throws ClientSslSocketFactoryException if an error is detected in loading the trust store