user = userManager.getUser(userName);
}
catch (SecurityException e)
{
System.out.println("user: " + userName + " not in j2 db");
PortalAdministration portalAdministration = (PortalAdministration)cm.getComponent("PortalAdministration");
try {
List roles = roleManager.getRoles("user");
List groups = groupManager.getGroups("");
portalAdministration.registerUser(userName, portalAdministration.generatePassword());
} catch (RegistrationException e1) {
// TODO Auto-generated catch block
System.out.println("user: " + userName + " not created");
} catch (SecurityException e1) {