code: public Document getResultDocument() throws TransformerException {
          return withExceptionHandling(new Trans<Document>() {
                  public Document transform() {
                      return transformation.transformToDocument();
                  }
              });
      }
docs: Perform the XSLT transformation specified in the constructor
  @return the result as a DOM Document
  @throws TransformerException