return node;
}
public Object visitGraphicElement(GraphicElement resource) throws Exception {
XMLNode node = new XMLNode(RESOURCE, currentNode);
node.addAttribute(RESOURCE_ATTR_ID, resource.getId());
node.addAttribute(RESOURCE_ATTR_CATEGORY, resource.getClass().getName());
XMLNode rawContentNode = new XMLNode(RAWCONTENT, node);
rawContentNode.setContent(resource.getZipFile());
node.addChild(rawContentNode);
currentNode.addChild(node);