code: public void prettyPrintsReport(File sessionDir, File prettyPrintReportFile)
              throws Exception {
          if ((!sessionDir.exists()) || (!sessionDir.isDirectory())) {
              throw new Exception("Error: LOGDIR " + sessionDir.getAbsolutePath()
                      + " seems not a valid directory. ");
          }
          File xml_logs_report_file = new File(sessionDir.getAbsolutePath()
                  + File.separator + "report_logs.xml");
          if (!xml_logs_report_file.exists()) {
              // throw new Exception("Error: missing logfile  " +
              // xml_logs_report_file.getAbsolutePath() + " ! ");
              System.out.println("Warning: missing logfile  "
                      + xml_logs_report_file.getAbsolutePath() + " ! ");
              System.out.println("Trying to create it!");
              LogUtils.createFullReportLog(sessionDir.getAbsolutePath());
          }
          File html_output_report_file = prettyPrintReportFile;
          if (html_output_report_file.exists()) {
              System.out.println("Report file \""
                      + html_output_report_file.getAbsolutePath() + "\" reused!");
              return;
          }
          // Fortify Mod: Close the FileOutputStream and releaase its resources
          // prettyprint(xml_logs_report_file.toURI().toURL().toExternalForm(),
          //         new FileOutputStream(html_output_report_file));
          FileOutputStream fos = new FileOutputStream(html_output_report_file);
          prettyprint(xml_logs_report_file.toURI().toURL().toExternalForm(), fos);
          fos.close();
          System.out.println("Report file \""
                  + html_output_report_file.getAbsolutePath() + "\" created!");
      }
docs: Create the pretty print HTML document of log report. Verify the content
  of log root directory and create the report.html file if it not exists.
  
  @param sessionDir
  existing logs directory