docs: public Document nodeToDom(org.w3c.dom.Node node) throws S2SException {
          try {
              javax.xml.transform.TransformerFactory tf = javax.xml.transform.TransformerFactory.newInstance();
              javax.xml.transform.Transformer xf = tf.newTransformer();
              javax.xml.transform.dom.DOMResult dr = new javax.xml.transform.dom.DOMResult();
              xf.transform(new javax.xml.transform.dom.DOMSource(node), dr);
              return (Document) dr.getNode();
  
          }
          catch (javax.xml.transform.TransformerException ex) {
              throw new S2SException(ex.getMessage());
          }
      }