final MasterReport report = demoHandler.createReport();
final ReportWriter writer = new ReportWriter(report, "ISO-8859-1",
ReportWriter.createDefaultConfiguration(report));
writer.addClassFactoryFactory(new URLClassFactory());
writer.addClassFactoryFactory(new DefaultClassFactory());
writer.addClassFactoryFactory(new BandLayoutClassFactory());
writer.addClassFactoryFactory(new ArrayClassFactory());
writer.addClassFactoryFactory(new ExtraShapesClassFactory());
writer.addStyleKeyFactory(new DefaultStyleKeyFactory());
writer.addStyleKeyFactory(new PageableLayoutStyleKeyFactory());
writer.addTemplateCollection(new DefaultTemplateCollection());