if(acceptUntrustedCertificates) {
CertificateHelper.acceptUntrusted();
LOG.log(Level.WARNING, "Enabling accept of untrusted certificates. Use at own risk.");
}
LdapIdentityProviderFactory ldapIdentityProviderFactory = new LdapIdentityProviderFactory();
ldapIdentityProviderFactory.setLdapConfiguration(this);
processEngineConfiguration.setIdentityProviderSessionFactory(ldapIdentityProviderFactory);
}