return reportPrinter;
}
private static ReportEngine createReportEngine(CommandLine cmd, LogFormat format) throws Exception {
ReportEngineFactory reportEngineFactory;
if (cmd.hasOption('g')) {
BeanFactory<ReportEngineFactory> builder = createServiceBuilder(ReportEngineFactory.class);
reportEngineFactory = builder.create(cmd.getOptionValue('g'));
} else {
reportEngineFactory = new DefaultReportEngineFactory();
}
ReportEngine reportEngine = reportEngineFactory.createEngine();
reportEngine.setLogFormat(format);
return reportEngine;
}