this.bootstrapRealmConfig = realmConfig;
this.dataSource = DatabaseUtil.getRealmDataSource(bootstrapRealmConfig);
properties.put(UserCoreConstants.DATA_SOURCE, dataSource);
//creating ldap connection if aaplicable, as described in other constructor.
if (bootstrapRealmConfig.getUserStoreProperty(LDAPConstants.CONNECTION_URL) != null) {
ldapConnectionSource = new LDAPConnectionContext(bootstrapRealmConfig);
properties.put(UserCoreConstants.LDAP_CONNECTION_SOURCE, ldapConnectionSource);
}
this.tenantManager = tenantManager;
bootstrapRealm = initializeRealm(bootstrapRealmConfig, 0);
}