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);
final Set<UserPermission> permissions = role.getPermissions();
for (Iterator<UserPermission> iteratorPermission = permissions.iterator(); iteratorPermission.hasNext();) {
UserPermission permission = (UserPermission) iteratorPermission.next();
String keyUserPermission = permission.getCode();
String valueUserPermission = permission.getName();
userViewBean.getPermissions().put(keyUserPermission, valueUserPermission);