new HtmlReportModel(costModel, new AnalysisModel(issuesReporter), options);
BeansWrapper objectWrapper = new DefaultObjectWrapper();
Configuration configuration = new Configuration();
configuration.setObjectWrapper(objectWrapper);
ResourceBundleModel bundleModel = new ResourceBundleModel(getBundle("messages"), objectWrapper);
configuration.setTemplateLoader(new ClassPathTemplateLoader(ReportGeneratorProvider.PREFIX));
report.setMessageBundle(bundleModel);
report.setSourceLinker(new SourceLinkerModel(linker));
generator = new FreemarkerReportGenerator(report, new PrintStream(out),
HTML_REPORT_TEMPLATE, configuration);
}