code: @Override
      public void toWriter(boolean wholeDocument, Writer writer, Properties outputProperties)
      {
          try {
              super.toWriter(wholeDocument, writer, outputProperties);
          } catch (TransformerException e) {
              throw wrapExceptionAsRuntimeException(e);
          }
      }
docs: @throws XMLBuilderRuntimeException
  to wrap {@link TransformerException}