public boolean addRole(String roleType, String group, String groupType) {
if (roleType == null || "".equals(roleType) || group == null || "".equals(group)
|| groupType == null || "".equals(groupType)) return false;
if (isLoggedIn()) {
return activeRoles.add(new SimpleRole(new SimpleRoleType(roleType),
user, new SimpleGroup(group, groupType)));
} else {
List<String> roleTypes = null;
Map<String, List<String>> groupTypes = preAuthenticationRoles.get(group);