//iterates the list of UserRoleGroups and extracts the Group based on the groupId of the UserRoleGroup
//add the Group to the list storing Groups
for (UserRoleGroup urgIterator : userUrgList)
{
Group group = (Group) objRetTools.getObject(Table.Group, "id", urgIterator.getGroupId());
groups.add(group);
//System.out.println("\n\n\tThis is a title: " + group.getGroupTitle());
}
//sets up return object
GroupDetailsJson[] groupDetailsList = GroupFactory.createGroupDetailsJson(groups.size());
//loops through each Group in the list
for (int i = 0; i < groups.size(); i++)
{
Group groupObj = groups.get(i);
//get a String representation of the groupId to search into the db
String groupIdString = Integer.toString(groupObj.getId());
//List<Question> questionList = objRetTools.getObjectList(Table.Question, "groupId", groupIdString);
//int numOfQuestions = questionList.size();
// TO BE CHANGED TO THE REAL #