}
XmlAttributeType xmlAtttribute = new XmlAttributeType();
xmlAtttribute.setName("LoginModuleConfiguration");
xmlrefElement.setValue(xmlAtttribute);
LoginConfig config = new LoginConfig();
xmlAtttribute.setAny(config);
LoginModule loginModule = new LoginModule();
config.getLoginModuleRefOrLoginModule().add(loginModule);
loginModule.setControlFlag(ControlFlag.fromValue("REQUIRED"));
loginModule.setWrapPrincipals(false);
loginModule.setLoginDomainName(realmName);
String realmType = page0.combo.getText().trim();