docs: public void printTo(Writer out)
  			throws IOException
  	{
  
  		try {
  			if (dom == null) {
  				return;
  			}
  			Transformer transformer = transformerFactory.newTransformer();
  			transformer.setOutputProperty(OutputKeys.INDENT, "yes");
  			transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
  			transformer.transform(new DOMSource(dom), new StreamResult(out));
  		} catch (TransformerException e) {
  			throw new IOException(e.getMessage(), e);
  		}
  	}