docs: public final void doReportPdf(final HttpServletRequest pReq,
      final HttpServletResponse pResp) throws ServletException, IOException {
      pReq.setCharacterEncoding("UTF-8");
      try {
        HashMap<String, Object> reqVars = new HashMap<String, Object>();
        String nameHandler = pReq.getParameter("nmHnd");
        IHndlFileReportReq srvHandleRequest = (IHndlFileReportReq) this
          .factoryAppBeans.lazyGet(nameHandler);
        HttpRequestData requestData = new HttpRequestData(pReq, pResp);
        requestData.setAttribute("reqVars", reqVars);
        IHandlerRequest hndlI18nRequest = (IHandlerRequest) this
          .factoryAppBeans.lazyGet("hndlI18nRequest");
        hndlI18nRequest.handle(reqVars, requestData);
        pResp.setContentType("application/pdf");
        String fileName = pReq.getParameter("fileName");
        if (fileName != null && !"".equals(fileName)) {
          pResp.setHeader("Content-Disposition", "attachment; filename="
            + fileName + ".pdf");
        }
        srvHandleRequest.handle(reqVars, requestData, pResp.getOutputStream());
      } catch (Exception e) {
        if (factoryAppBeans != null) {
          ILog logger = null;
          try {
            logger = (ILog) factoryAppBeans.lazyGet("ILog");
          } catch (Exception e1) {
            e1.printStackTrace();
          }
          if (logger != null) {
            logger.error(null, getClass(), "WORK", e);
          } else {
            e.printStackTrace();
          }
        } else {
          e.printStackTrace();
        }
        if (e instanceof ExceptionWithCode) {
          pReq.setAttribute("error_code",
            ((ExceptionWithCode) e).getCode());
          pReq.setAttribute("short_message",
            ((ExceptionWithCode) e).getShortMessage());
        } else {
          pReq.setAttribute("error_code",
            HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        }
        pReq.setAttribute("javax.servlet.error.status_code",
          HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        pReq.setAttribute("javax.servlet.error.exception", e);
        pReq.setAttribute("javax.servlet.error.request_uri",
          pReq.getRequestURI());
        pReq.setAttribute("javax.servlet.error.servlet_name", this.getClass()
          .getCanonicalName());
        pResp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
      }
    }