private void addRelations(Element parent, Relations relations) {
		if (relations == null || relations.isEmpty())
			return;
		
		Element relationsNode = doc.createElementNS(getNamespace(), DefaultXmlNames.ELEMENT_Relations);
		parent.appendChild(relationsNode);
		
		Set<ContentObjectRelation> set = relations.exportRelations();
		for (Iterator<ContentObjectRelation> it = set.iterator(); it.hasNext(); ) {
			ContentObjectRelation rel = it.next();
			if (rel != null) {
				Element relationNode = doc.createElementNS(getNamespace(), DefaultXmlNames.ELEMENT_Relation);
				relationsNode.appendChild(relationNode);
				
				//Type
				addAttribute(relationNode, DefaultXmlNames.ATTR_type, rel.getRelationType().toString());
				//Custom
				if (!rel.getCustomField().isEmpty())
					addAttribute(relationNode, DefaultXmlNames.ATTR_custom, rel.getCustomField());
				//Comments
				if (!rel.getComments().isEmpty())
					addAttribute(relationNode, DefaultXmlNames.ATTR_comments, rel.getComments());
				
				//Object 1
				Element regionRefNode = doc.createElementNS(getNamespace(), DefaultXmlNames.ELEMENT_RegionRef);
				relationNode.appendChild(regionRefNode);
				addAttribute(regionRefNode, DefaultXmlNames.ATTR_regionRef, rel.getObject1().getId().toString());
		
				//Object 2
				regionRefNode = doc.createElementNS(getNamespace(), DefaultXmlNames.ELEMENT_RegionRef);
				relationNode.appendChild(regionRefNode);
				addAttribute(regionRefNode, DefaultXmlNames.ATTR_regionRef, rel.getObject2().getId().toString());
			}
		}
	}