ReportExportConfiguration reportConfiguration = getReportConfiguration();
if (reportConfiguration != null)
exporter.setConfiguration(reportConfiguration);
exporter.exportReport();
Flushables.flushQuietly(output);
return output.toByteArray();
} catch (JRException e) {
throw new RuntimeException(e);