List roles = new ArrayList();
Iterator rolesListIterator = principal.getRoles().iterator();
while(rolesListIterator.hasNext())
{
InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
roleBean.setName(role.getName());
roleBean.setDisplayName(role.getDisplayName());
roleBean.setDescription(role.getDescription());
roles.add(roleBean);
}
bean.setRoles(roles);
}
else