code: public File generate(File outputDir, boolean pack) throws IOException {
          return generate(outputDir, pack, null);
      }
docs: The method generate the policy check report
  
  @param outputDir Directory where report files will be created.
  @param pack      <code>True</code> to create a zip file from the resulting directory.
  @return  File reference to the resulting report.
  @throws IOException In case of errors during report generation process.