AppConfigurationEntry[] entry;
MyConfig()
{
entry = new AppConfigurationEntry[2];
HashMap opt0 = new HashMap();
opt0.put("principal", new CustomPrincipalImpl(username));
opt0.put("credential", password);
opt0.put("password-stacking", "useFirstPass");
entry[0] = new AppConfigurationEntry("org.jboss.test.security.ejb.CustomPrincipalLoginModule",
AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, opt0);
entry[1] = new AppConfigurationEntry("org.jboss.security.ClientLoginModule",