try {
IdentityUtil.populateProperties();
IdentityUserMgtListener userMgtListener = new IdentityUserMgtListener();
ctxt.getBundleContext().registerService(UserStoreManagerListener.class.getName(), userMgtListener, null);
ctxt.getBundleContext().registerService(IdentityUtil.class.getName(),
new IdentityUtil(), null);
bundleContext = ctxt.getBundleContext();
} catch (Throwable e) {
log.error("Error occured while populating identity configuration properties", e);
}
}