List groups = new ArrayList();
Iterator groupsListIterator = principal.getGroups().iterator();
while(groupsListIterator.hasNext())
{
InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
groupBean.setName(group.getName());
groupBean.setDisplayName(group.getDisplayName());
groupBean.setDescription(group.getDescription());
groups.add(groupBean);
}
bean.setGroups(groups);
List roles = new ArrayList();