PipedInputStream fillToPrintInputStream = new PipedInputStream(fillToPrintOutputStream);
if (UtilValidate.isNotEmpty(datasourceName)) {
JasperFillManager.fillReportToStream(report, fillToPrintOutputStream, parameters, ConnectionFactory.getConnection(datasourceName));
} else {
JasperFillManager.fillReportToStream(report, fillToPrintOutputStream, parameters, new JREmptyDataSource());
}
JasperExportManager.exportReportToXmlStream(fillToPrintInputStream, response.getOutputStream());
} catch (IOException ie) {
throw new ViewHandlerException("IO Error in region", ie);
} catch (java.sql.SQLException e) {