code: public static Node toNode(Source s) {
          Node n = tryExtractNodeFromDOMSource(s);
          return n != null ? n 
              : toDocument(s, DocumentBuilderFactoryConfigurer.Default.configure(DocumentBuilderFactory.newInstance()));
      }
docs: Creates a DOM Node from a TraX Source.
  
  <p>If the source is a {@link DOMSource} its Node will be
  returned, otherwise this delegates to {@link #toDocument}.</p>