code: private Transformer createTransformer(boolean indent) {
  
      try {
        Transformer result = this.transformerFactory.newTransformer();
        if (indent) {
          result.setOutputProperty(OutputKeys.INDENT, "yes");
        }
        return result;
      } catch (TransformerConfigurationException e) {
        throw new IllegalStateException("XML Transformer misconfigured!" + " Probably your JVM does not support the required JAXP version!", e);
      }
    }
docs: This method creates a new transformer.
  
  @param indent - {@code true} if the XML should be indented (automatically add linebreaks before opening
  tags), {@code false} otherwise.
  @return the new transformer.