code: protected void renderFO(String fo, HttpServletResponse response)
                  throws FOPException, TransformerException, IOException {
  
          //Setup source
          Source foSrc = convertString2Source(fo);
  
          //Setup the identity transformation
          Transformer transformer = this.transFactory.newTransformer();
          transformer.setURIResolver(this.uriResolver);
  
          //Start transformation and rendering process
          render(foSrc, transformer, response);
      }
docs: Renders an XSL-FO file into a PDF file. The PDF is written to a byte
  array that is returned as the method's result.
  @param fo the XSL-FO file
  @param response HTTP response object
  @throws FOPException If an error occurs during the rendering of the
  XSL-FO
  @throws TransformerException If an error occurs while parsing the input
  file
  @throws IOException In case of an I/O problem