Core/src/main/java/org/openestate/io/core/XmlUtils.java
public static void write(Document doc, OutputStream output) throws TransformerException {
        XmlUtils.write(doc, output, true);
    }
public static void write(Document doc, OutputStream output) throws TransformerException {
        XmlUtils.write(doc, output, true);
    }
Write a {@link Document} to an {@link OutputStream}.

@param doc    the document to write
@param output the output, where the document is written to
@throws TransformerException if XML transformation failed