public class XmlReportFactory {
public static final RatReport createStandardReport(IXmlWriter writer,
final ClaimStatistic pStatistic, ReportConfiguration pConfiguration) {
final List<RatReport> reporters = new ArrayList<RatReport>();
if (pStatistic != null) {
reporters.add(new ClaimAggregator(pStatistic));
}
if (pConfiguration.isAddingLicenses()) {
reporters.add(new LicenseAddingReport(pConfiguration.getCopyrightMessage(), pConfiguration.isAddingLicensesForced()));
}
reporters.add(new SimpleXmlClaimReporter(writer));