code: private JsonEntityBean populateChildren(
              JsonEntityBean jsonBean, Iterator<IGroupMember> children) {
  
          while (children.hasNext()) {
  
              IGroupMember member = children.next();
  
              // add the entity bean to the list of children
              JsonEntityBean jsonChild = getEntity(member);
              jsonBean.addChild(jsonChild);
          }
  
          // mark this entity bean as having had it's child list initialized
          jsonBean.setChildrenInitialized(true);
  
          return jsonBean;
      }
docs: Populates the children of the JsonEntityBean. Creates new JsonEntityBeans for the known types
  (person, group, or category), and adds them as children to the current bean.
  
  @param jsonBean Entity bean to which the children are added
  @param children An Iterator containing IGroupMember elements. Usually obtained from
  entity.getMembers().
  @return jsonBean with the children populated