XmlReader xmlReader = new DefaultXmlReader();
Report report = xmlReader.parseXml(FileUtils.readFileToString(new File(cmd.getOptionValue(REPORT_PATH))));
Map<String, Object> params = parseReportParams(cmd, report);
reporting.runReport(new RunParams(report)
.templateCode(templateCode)
.params(params),
new FileOutputStream(cmd.getOptionValue(OUTPUT_PATH)));
if (doExitWhenFinished) {
System.exit(0);