return doc;
}
private void actionLoadExistingRealm(PortletRequest request, RealmData data) {
SecurityRealm realm = (SecurityRealm) PortletManager.getManagedBean(request, new AbstractName(URI.create(data.getAbstractName())));
data.name = realm.getRealmName();
data.global = ((ConfigurationEntryFactory)realm).isGlobal();
List list = new ArrayList();
JaasLoginModuleChain node = realm.getLoginModuleChain();
while (node != null) {
LoginModuleDetails details = new LoginModuleDetails();
details.setControlFlag(node.getControlFlag());
LoginModuleSettings module = node.getLoginModule();
details.setLoginDomainName(module.getLoginDomainName());