ComponentPermissions componentPermissions = new ComponentPermissions(excludedPermissions, uncheckedPermissions, new HashMap());
//Force a new realm name and ignore the application name
SecurityHolder securityHolder = new SecurityHolder();
securityHolder.setSecurity(false);//redundant: forces use of TomcatJAASRealm not TomcatGeronimoRealm
securityHolder.setConfigurationFactory(this.realm);
CredentialStore credentialStore = null;
WebAppInfo webAppInfo = new WebAppInfo();
webAppInfo.loginConfig = new LoginConfigInfo();
webAppInfo.loginConfig.authMethod = "FORM";
webAppInfo.loginConfig.realmName = "geronimo-admin";
webAppInfo.loginConfig.formLoginPage = "/auth/logon.html?param=test";