code: private void generateExternalReports(Engine engine, File outDirectory) throws ScanAgentException {
          try {
              engine.writeReports(applicationName, outDirectory, this.reportFormat.name());
          } catch (ReportException ex) {
              LOGGER.debug("Unexpected exception occurred during analysis; please see the verbose error log for more details.", ex);
              throw new ScanAgentException("Error generating the report", ex);
          }
      }
docs: Generates the reports for a given dependency-check engine.
  
  @param engine a dependency-check engine
  @param outDirectory the directory to write the reports to
  @throws ScanAgentException thrown if there is an error generating the
  report