}
Report report = ReportReader.load(Test4.class.getResource("test4.xml"));
ReportContext context = new ReportContext();
context.define("items", items);
PdfGenerator.generatePdf(context, report, new File("out4.pdf"));
PageStore pageStore = new PageStore();
FontRenderContext frc = new FontRenderContext(null, true, true);
Formatter fmt = new Formatter(report, context, frc, pageStore);
long tm = System.currentTimeMillis();
tm = System.currentTimeMillis()-tm;
System.out.println("Time for formatting: " + tm + "ms");