Map<String, String> params = new HashMap<String, String>();
params.put("serviceName", serviceName);
AppConfigurationEntry entry = new AppConfigurationEntry("net.sf.jpam.jaas.JpamLoginModule", AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, params);
// Add generated JAAS Configuration
CoreJAASConfiguration config = (CoreJAASConfiguration) Configuration.getConfiguration();
config.addAppConfigurationEntry(PAMUserDatabase.class.getName(), entry);
// Instantiate members with Property dependencies
pam = new Pam(serviceName);
// Add defaults groups