XMLUtils.startElement(this.xmlConsumer, "pages");
entries = new ArrayList(this.collector.getPageReports());
Collections.sort(entries, new PageReportComparator());
final Iterator pi = entries.iterator();
while ( pi.hasNext() ) {
final PageReport report = (PageReport)pi.next();
final AttributesImpl attrs = new AttributesImpl();
attrs.addCDATAAttribute("id", report.getId());
attrs.addCDATAAttribute("date", report.getDate().toString());
XMLUtils.startElement(this.xmlConsumer, "report", attrs);
final Iterator si = report.getStatistics().iterator();
while ( si.hasNext() ) {
final Statistics stats = (Statistics)si.next();
attrs.clear();
attrs.addCDATAAttribute("name", stats.getCategory());
attrs.addCDATAAttribute("duraration", String.valueOf(stats.getDuration()));