docs: public static void printDoc(final Document doc) {
          try {
              final Transformer trans = TransformerFactory.newInstance()
                      .newTransformer();
              trans.setOutputProperty(OutputKeys.INDENT, "yes");
              trans.transform(new DOMSource(doc), new StreamResult(System.out));
          } catch (final TransformerConfigurationException e) {
              LOG.error("Could not configure transformer", e);
          } catch (final TransformerFactoryConfigurationError e) {
              LOG.error("Could not configure transformer factory", e);
          } catch (final TransformerException e) {
              LOG.error("Error running transformation", e);
          }
      }