class UmaIdRepoCreationListener implements IdRepoCreationListener {

    @Override
    public synchronized void notify(AMIdentityRepository idRepo, String realm) {
        String normalizedRealm = coreWrapper.convertRealmNameToOrgName(realm);
        if (!registeredRealms.contains(normalizedRealm)) {
            idRepo.addEventListener(policyApplicationListener);
            registeredRealms.add(normalizedRealm);
        }
    }

    @Inject public  UmaIdRepoCreationListener(UmaPolicyApplicationListener policyApplicationListener, CoreWrapper coreWrapper);

}