@SuppressWarnings("deprecation")
 @Override
 public MasterReport getReport() throws Exception {
   MasterReport report = null;
   if (reportSpec != null) {
     ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
     ReportGenerationUtility.createJFreeReportXML(
         reportSpec, outputStream, 0, 0, false, "", 0, 0); // $NON-NLS-1$
     String reportDefinition = new String(outputStream.toByteArray());
     report = createReport(reportDefinition);
   } else {
     report = super.getReport();
   }
   return report;
 }
  @Override
  protected boolean executeAction() {
    boolean result = true;
    try {
      ReportSpec reportSpec = getReportSpec();
      if (reportSpec != null) {
        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        ReportGenerationUtility.createJFreeReportXML(
            reportSpec, outputStream, 0, 0, false, "", 0, 0); // $NON-NLS-1$
        String reportDefinition = new String(outputStream.toByteArray());
        addTempParameterObject(
            AbstractJFreeReportComponent.REPORTGENERATEDEFN_REPORTDEFN, reportDefinition);

        // if that parameter is not defined, we do query for backward compatibility.
        if (!isDefinedInput(AbstractJFreeReportComponent.REPORTGENERATEDEFN_REPORTTEMP_PERFQRY)
            || "true"
                .equals(
                    getInputParameter(
                        AbstractJFreeReportComponent
                            .REPORTGENERATEDEFN_REPORTTEMP_PERFQRY))) { //$NON-NLS-1$
          if (reportSpec.getReportSpecChoice().getXqueryUrl() != null) {
            // handle xquery
          } else {
            try {
              addTempParameterObject(
                  AbstractJFreeReportComponent.DATACOMPONENT_DATAINPUT, getResultSet(reportSpec));
            } catch (Exception e) {
              result = false;
            }
          }
        }
      }
    } catch (FileNotFoundException ex) {
      error(ex.getLocalizedMessage());
      result = false;
    }
    return result;
  }