code: private Report getReport(AbstractBlock part) {
          Object primaryReportColum = part.getAttributes().get(PRIMARY_REPORT_COLUM);
          Object reportType = part.getAttributes().get(REPORT_TYPE);
          Properties reportProperties = parseProperties(part, REPORT_PROPERTIES);
          Report.ReportBuilder reportBuilder = Report.builder();
          if (reportType != null) {
              reportBuilder.selectedTypes(Report.selectTypes(reportType.toString()));
          }
          if (primaryReportColum != null) {
              reportBuilder.primaryColumn(primaryReportColum.toString());
          }
          return reportBuilder.properties(reportProperties).build();
      }
docs: Create the report part of a rule.
  
  @param part
  The content part.
  @return The report.