String valueCustomerRole = role.getName();
customerViewBean.getRoles().put(keyCustomerRole, valueCustomerRole);
final Set<CustomerPermission> permissions = role.getPermissions();
for (Iterator<CustomerPermission> iteratorPermission = permissions.iterator(); iteratorPermission.hasNext();) {
CustomerPermission permission = (CustomerPermission) iteratorPermission.next();
String keyCustomerPermission = permission.getCode();
String valueCustomerPermission = permission.getName();
customerViewBean.getPermissions().put(keyCustomerPermission, valueCustomerPermission);
}
}
}