{
final ByteArrayOutputStream out = new ByteArrayOutputStream();
final StreamRepository html = new StreamRepository(out);
final ZipRepository zipRepository = new ZipRepository(new NullOutputStream());
final ContentLocation data = RepositoryUtilities.createLocation
(zipRepository, RepositoryUtilities.splitPath("data", "/"));
final ContentLocation root = html.getRoot();
final PageableHtmlOutputProcessor outputProcessor = new PageableHtmlOutputProcessor(report.getConfiguration());
outputProcessor.setFlowSelector(new SinglePageFlowSelector(page, true));
final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());