PipedInputStream fillToPrintInputStream = new PipedInputStream(fillToPrintOutputStream);
if (datasourceName != null && datasourceName.length() > 0) {
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) {