void convertAllAreasToVO(DrawingControlGroup node, DrawingGroupVo voGroup) { voGroup.setAreaCollection(new DrawingAreaVoCollection()); voGroup.setChildGroups(new DrawingGroupVoCollection()); voGroup.setGroupName(node.getName()); voGroup.setGroupID(new Integer(node.getID())); DrawingControlAreaCollection areas = node.getAreas(); for (int i = 0; i < areas.size(); i++) { DrawingControlArea area = areas.get(i); voGroup.getAreaCollection().add(createVoArea(area)); } DrawingControlGroupCollection groups = node.getGroups(); for (int i = 0; i < groups.size(); i++) { DrawingControlGroup group = groups.get(i); voGroup.getChildGroups().add(createVoGroup(group)); convertAllAreasToVO(group, voGroup.getChildGroups().get(i)); } }