long start = System.currentTimeMillis();
//Preparing parameters
Map parameters = new HashMap();
parameters.put("ReportTitle", "Orders Report");
SimpleFileResolver fileResolver =
new SimpleFileResolver(
Arrays.asList(new File[]{new File("build/reports")})
);
fileResolver.setResolveAbsolutePath(true);
parameters.put(JRParameter.REPORT_FILE_RESOLVER, fileResolver);
JasperReport jasperReport = (JasperReport)JRLoader.loadObject("build/reports/TableOfContentsReport.jasper");