Properties connectionProperties = new Properties();
connectionProperties.put("com.sun.jndi.ldap.connect.pool", "true");
connectionProperties.put(LDAPIdentityStoreConfiguration.ENTRY_IDENTIFIER_ATTRIBUTE_NAME, "entryUUID");
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
builder
.named(SIMPLE_LDAP_STORE_CONFIG)
.stores()
.ldap()
.connectionProperties(properties)