code: private Transformer createIndentingTransformer() throws TransformerConfigurationException {
          Transformer transformer = createTransformer();
          transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
          transformer.setOutputProperty(OutputKeys.INDENT, "yes");
          return transformer;
      }
docs: Get transformer implementation with output properties set.
  
  @return the transformer instance.
  @throws TransformerConfigurationException