customerViewBean.setDateUpdate(dateFormat.format(customer.getDateUpdate()));
}
final Set<CustomerGroup> groups = customer.getGroups();
for (Iterator<CustomerGroup> iteratorGroup = groups.iterator(); iteratorGroup.hasNext();) {
CustomerGroup group = (CustomerGroup) iteratorGroup.next();
String keyCustomerGroup = group.getCode();
String valueCustomerGroup = group.getName();
customerViewBean.getGroups().put(keyCustomerGroup, valueCustomerGroup);
final Set<CustomerRole> roles = group.getRoles();
for (Iterator<CustomerRole> iteratorRole = roles.iterator(); iteratorRole.hasNext();) {
CustomerRole role = (CustomerRole) iteratorRole.next();
String keyCustomerRole = role.getCode();
String valueCustomerRole = role.getName();
customerViewBean.getRoles().put(keyCustomerRole, valueCustomerRole);