code: private Report getReport(ReportType reportType) {
          String type = null;
          String primaryColumn = null;
          Properties properties = new Properties();
          if (reportType != null) {
              type = reportType.getType();
              primaryColumn = reportType.getPrimaryColumn();
              for (PropertyType propertyType : reportType.getProperty()) {
                  properties.setProperty(propertyType.getName(), propertyType.getValue());
              }
          }
          Report.ReportBuilder reportBuilder = Report.builder().primaryColumn(primaryColumn).properties(properties);
          if (type != null) {
              reportBuilder.selectedTypes(Report.selectTypes(type));
          }
          return reportBuilder.build();
      }
docs: Read the report definition.
  
  @param reportType
  The report type.
  @return The report definition.