private static Node mapXmlNodeToNode(XmlNode xmlNode) { Node node = new Node(); node.setNodeText(xmlNode.getNodeText()); return node; }
private static XmlNode mapNodeToXmlNode(Node node) { XmlNode xmlNode = new XmlNode(); if (node != null) { xmlNode.setNodeText(node.getNodeText()); } return xmlNode; }