String documentId = documentIds[i];
report = buildReport(response, vars, documentId, reportManager, documentType,
Report.OutputTypeEnum.PRINT);
try {
jasperPrint = reportManager.processReport(report, vars);
jrPrintReports.add(jasperPrint);
} catch (final ReportingException e) {
advisePopUp(request, response, "Report processing failed",
"Unable to process report selection");
log4j.error(e.getMessage());