// pull group using the ObjectRetrievalTools class
ObjectRetrievalTools<Group> retrieval = new ObjectRetrievalTools<Group>();
Group group = retrieval.getObject(Table.Group, "id", groupId);
// pass object to GroupFactory.createGroupInfoJson()
GroupInfoJson infoJson = GroupFactory.createGroupInfoJson(group);
return infoJson;
}
}
}
}