throw new IllegalStateException("Cannot fine resource: " + pkConfig);
}
this.realmName = config.getProperty("picketlink.realmName", "idm_realm");
IdentityConfigurationMetaData configMD = JAXB2IdentityConfiguration.createConfigurationMetaData(pk_config_url.openStream());
IdentityConfiguration identityConfiguration = new IdentityConfigurationImpl().configure(configMD);
identityConfiguration.getIdentityConfigurationRegistry().register(sessionFactory_, "hibernateSessionFactory");
if (identitySessionFactory == null) {
try {
identitySessionFactory = identityConfiguration.buildIdentitySessionFactory();
} catch (IdentityConfigurationException e) {
throw new RuntimeException(e);
}
}
}