if (pk_config_url == null) {
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 {