@Override
public void compileReport(String aReportPathName) {
try {
final InputStream inputStream = getClass().getResourceAsStream(aReportPathName);
final JasperDesign jasperDesign = JRXmlLoader.load(inputStream);
final JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
} catch (final Exception ex) {
final String connectMsg = "JasperReports: Could not create the report " + ex.getMessage() + " " + ex.getLocalizedMessage();
Logger.getLogger(getClass()).error(connectMsg, ex);
}