}
ReportCheckResultBean reportCheckResultBean = reportsService.generateReport(reportParameters,
request);
ReportCheckResult reportCheckResult = reportCheckResultBean.getReportCheckResult();
if (reportCheckResult == ReportCheckResult.VALID) {
boolean csvEnabled = !(reportParameters.getReportFormat() == ReportFormat.TRENDING ||
reportParameters.getReportFormat() == ReportFormat.MONTHLY_PROGRESS_REPORT);
StringBuffer report = reportCheckResultBean.getReport();