code: protected boolean loadReport(ReportsConfig result, InputStream report, String reportName) {
          ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
          ReportConfig reportConfig = null;
          try {
              reportConfig = mapper.readValue(report, ReportConfig.class);
          } catch (IOException e) {
              e.printStackTrace();
              errors.add("Error parsing " + reportName + " " + e.getMessage());
              return false;
          }
          reportConfig.setReportId(reportName);
          result.getReports().put(reportName, reportConfig);
          return true;
      }
docs: Loads a report, this does the deserialization, this method can be substituted with another, called by child
  classes. Once it has deserialized it, it put it into the map.
  @param result
  @param report
  @param reportName
  @return