report = new PropertiesReportGenerator(out, costModel);
break;
case source:
GradeCategories gradeCategories = new GradeCategories(options.getMaxExcellentCost(),
options.getMaxAcceptableCost());
report = new SourceReportGenerator(gradeCategories, sourceLoader,
new File("te-report"), costModel, new Date(), options.getWorstOffenderCount(), cfg);
break;
case xml:
XMLSerializer xmlSerializer = new XMLSerializer();
xmlSerializer.setOutputByteStream(out);