question: private byte [ ] exportReport ( final ReportRequest reportInput , final JasperPrint jasperPrint ) throws JRException , IOException { try { final ByteArrayOutputStream reportOutputStream = new ByteArrayOutputStream ( ) ; final JRExporter exporter = getExporter ( reportInput , jasperPrint , reportOutputStream ) ; exporter . exportReport ( ) ; final byte [ ] data = reportOutputStream . toByteArray ( ) ; reportOutputStream . close ( ) ; return data ; } catch ( final Exception e ) { final String errMsg = "Exception in export report!" ; LOGGER . error ( errMsg , e ) ; throw new ApplicationRuntimeException ( errMsg , e ) ; } }
target:  Exports the given jasper print object in required format by looking at the report input