code: public static Node convertToDom(final String json, final String namespace, final boolean addTypeAttributes, final String artificialRootName) throws TransformerConfigurationException, TransformerException {
          Transformer transformer = TransformerFactory.newInstance().newTransformer();
          InputSource source = new InputSource(new StringReader(json));
          DOMResult result = new DOMResult();
          transformer.transform(new SAXSource(new JsonXmlReader(namespace, addTypeAttributes, artificialRootName), source), result);
          return result.getNode();
      }
docs: Helper method to convert JSON string to XML DOM
  
  @param json String containing the json document
  @param namespace Namespace that will contain the generated dom nodes
  @param addTypeAttributes Set to true to generate type attributes
  @param artificialRootName Name of the artificial root element node
  @return Document DOM node.
  @throws javax.xml.transform.TransformerConfigurationException