reportLog = new ReportLog(user, report, new Date());
reportLog.setExportType(reportInput.getExportType().getCode());
reportLog = reportLogProvider.insertReportLog(reportLog);
ReportEngine reportEngine = ReportEngineHelper.getReportEngine(report,
dataSourceProvider, directoryProvider, propertiesProvider);
ReportEngineInput engineInput = new ReportEngineInput(report, buildParameterMap(reportInput, report));
engineInput.setExportType(reportInput.getExportType());
engineInput.setXmlInput(reportInput.getXmlInput());
engineInput.setLocale(ORUtil.getLocale(reportInput.getLocale()));
ReportEngineOutput reportEngineOutput = reportEngine.generateReport(engineInput);
reportOutput.setContent(reportEngineOutput.getContent());
reportOutput.setContentType(reportEngineOutput.getContentType());
reportOutput.setContentExtension(reportEngineOutput.getContentExtension());