Constructor ct = repoClass.getConstructor(partypes);
Object argList[] = new Object[1];
argList[0] = metaData.getId();
IdentityStoreRepository repo = (IdentityStoreRepository)ct.newInstance(argList);
IdentityRepositoryConfigurationContext repoConfigurationContext =
new IdentityRepositoryConfigurationContextImpl(configMD, this, metaData);
repo.bootstrap(repoConfigurationContext, bootstrappedIdentityStores, bootstrappedAttributeStores);
bootstrappedRepositories.put(repo.getId(), repo);
}
// Realms
Map<String, IdentitySessionConfigurationContext> sessionCtxMap = new HashMap<String, IdentitySessionConfigurationContext>();
for (RealmConfigurationMetaData metaData : configMD.getRealms())
{
String realmName = metaData.getId();
IdentityStoreRepository repo = bootstrappedRepositories.get(metaData.getIdentityRepositoryIdRef());
IdentityObjectTypeMapper mapper = null;
if (metaData.getGroupTypeMappings() == null || metaData.getGroupTypeMappings().isEmpty())
{