Realm realm = Realm.getInstance(realmName);
// should always true in this moment
if (realm instanceof FileRealm) {
SecuritySupport secSupp = SecurityUtil.getSecuritySupport();
secSupp.synchronizeKeyFile(event.getConfigContext(), realmName);
}
realm.refresh();
} catch(Exception ex) {
throw new AdminEventListenerException(ex);