setError(null);
try
{
final MasterReport report = getReport();
final ContentLocation contentLocation = getBodyContentLocation();
final NameGenerator nameGenerator = getBodyNameGenerator();
final ContentItem contentItem =
contentLocation.createItem(nameGenerator.generateName(null, "application/zip"));
final OutputStream out = contentItem.getOutputStream();
try
{
final ZipRepository zipRepository = new ZipRepository(out);
try
{
final ContentLocation root = zipRepository.getRoot();
final ContentLocation data = RepositoryUtilities.createLocation
(zipRepository, RepositoryUtilities.splitPath("data", "/"));
final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();
final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());