if(__log.isDebugEnabled())
__log.debug("Realm is : "+realmName);
if (realmName != null)
{
JBossUserRealm realm = new JBossUserRealm(realmName,getJBossWebApplicationContext().getSubjectAttribute());
getJBossWebApplicationContext().setRealm(realm);
getJBossWebApplicationContext().getSecurityHandler().setUserRealm(realm);
}
super.initLoginConfig(node);
}