ReportDataSource dataSource = report.getDataSource();
try
{
JasperReport jr = null;
if (report.isQueryReport()) return fillQueryReport(report, parameters, input.getExportType());
jr = (JasperReport) JRLoader
.loadObject(directoryProvider.getReportDirectory() + report.getFile());
List<ReportParameterMap> subReports = report.getSubReportParameters();
if (subReports != null && subReports.size() > 0)
{
Iterator<ReportParameterMap> iterator = report.getSubReportParameters().iterator();
while (iterator.hasNext())
{
ReportParameterMap rpMap = iterator.next();
JasperReport subReport = (JasperReport) JRLoader.loadObject(directoryProvider
.getReportDirectory()
+ rpMap.getReportParameter().getData());
parameters.put(rpMap.getReportParameter().getName(), subReport);
}