docs: public void serialize(final Node pRootNode, final boolean pWriteXMLDeclaration) {
          PrintWriter out = new PrintWriter(new OutputStreamWriter(output, encoding));
          try {
              if (pWriteXMLDeclaration) {
                  writeXMLDeclaration(out);
              }
              writeXML(out, pRootNode, context.copy());
          }
          finally {
              out.flush();
          }
      }