*/
public ReportGenerator build(CostModel costModel, ReportModel reportModel,
SourceLoader sourceLoader) {
SourceLinker linker = new SourceLinker(
options.getSrcFileLineUrl(), options.getSrcFileUrl());
Configuration cfg = new Configuration();
cfg.setTemplateLoader(new ClassPathTemplateLoader(PREFIX));
BeansWrapper objectWrapper = new DefaultObjectWrapper();
cfg.setObjectWrapper(objectWrapper);
ResourceBundleModel bundleModel = new ResourceBundleModel(getBundle("messages"),
objectWrapper);
ReportGenerator report;
switch (reportFormat) {