public static LDAPConnection build(SSLSocketFactory socketFactory, LdapConfigBean config) throws LDAPException {
        if (isLdaps(config.getScheme()) || socketFactory == null) {
            return getConnection(connectionPoolCache, socketFactory, config);
        } else {
            return getConnection(connectionPoolCache, null, config);
        }
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/LDAPConnectionFactory.java