code: protected void loadReport(ReportsConfig result, File report, String reportId) throws IOException {
          if (report.isDirectory())
          {
              FilenameFilter configYamlFilter = new PatternFilenameFilter("^reportconf.(yaml|json)$");
              File[] selectYaml = report.listFiles(configYamlFilter);
              if (selectYaml != null && selectYaml.length == 1)
              {
                  File selectedYaml = selectYaml[0];
                  loadReport(result, FileUtils.openInputStream(selectedYaml), reportId);
              }
          }
      }
docs: Custom separate dload report component, so it can be called elsewhere, or overwritten by child Providers. Checks
  the "report" to ensure it is a directory then looks for reportconf.yaml or reportconf.json inside the file. If it
  exists loads it.
  @param result The collection of reports to load the contents into.
  @param report The directory that contains the report files.
  @param reportId The report id
  @throws IOException