void convertAllAreasToVO(DrawingControlGroup node, GraphicGroupVo voGroup) { voGroup.setAreaCollection(new GraphicAreaVoCollection()); voGroup.setChildGroups(new GraphicGroupVoCollection()); 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)); } }