userViewBean.setDateUpdate(Constants.NOT_AVAILABLE);
}
final Set<UserGroup> groups = user.getGroups();
for (Iterator<UserGroup> iteratorGroup = groups.iterator(); iteratorGroup.hasNext();) {
UserGroup group = (UserGroup) iteratorGroup.next();
String keyUserGroup = group.getCode();
String valueUserGroup = group.getName();
userViewBean.getGroups().put(keyUserGroup, valueUserGroup);
final Set<UserRole> roles = group.getRoles();
for (Iterator<UserRole> iteratorRole = roles.iterator(); iteratorRole.hasNext();) {
UserRole role = (UserRole) iteratorRole.next();
String keyUserRole = role.getCode();
String valueUserRole = role.getName();
userViewBean.getRoles().put(keyUserRole, valueUserRole);