code: @Override
      public void to(final Node node, final OutputStream out) throws DescriptorExportException {
          try {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              DocumentBuilder builder = factory.newDocumentBuilder();
              Document root = builder.newDocument();
              root.setXmlStandalone(true);
  
              writeRecursive(root, node);
  
              Transformer transformer = TransformerFactory.newInstance().newTransformer();
              transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
              transformer.setOutputProperty(OutputKeys.INDENT, "yes");
              transformer.setOutputProperty(OutputKeys.STANDALONE, "yes");
  
              StreamResult result = new StreamResult(out);
              transformer.transform(new DOMSource(root), result);
          } catch (Exception e) {
              throw new DescriptorExportException("Could not export Node structure to XML", e);
          }
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorExporterImpl#to(org.jboss.shrinkwrap.descriptor.spi.node.Node,
  java.io.OutputStream)