GroupForm form = new GroupForm();
form.setKey(key);
form.setName(group.getName());
form.setDescription(group.getDescription());
form.setCreatorId(group.getCreatorID());
<BUG>form.setType(groupListHelper.getEntityType(group).toString());
Iterator<IGroupMember> groupIter = group.getChildren().iterator();
while (groupIter.hasNext()) {
IGroupMember child = groupIter.next();</BUG>
JsonEntityBean childBean = groupListHelper.getEntity(child);

GroupForm form = new GroupForm();
form.setKey(key);
form.setName(group.getName());
form.setDescription(group.getDescription());
form.setCreatorId(group.getCreatorID());
form.setType(groupListHelper.getEntityType(group).toString());
for (IGroupMember child : group.getChildren()) {
JsonEntityBean childBean = groupListHelper.getEntity(child);
