final HtmlPrinter printer = outputProcessor.getPrinter();
printer.setContentWriter(targetRoot,
new DefaultNameGenerator(targetRoot, filename, suffix));
printer.setDataWriter(dataRoot, new DefaultNameGenerator(dataRoot, "content"));
printer.setEncoding(encoding);
printer.setUrlRewriter(new FileSystemURLRewriter());
sp.setOutputProcessor(outputProcessor);
sp.processReport(job);
}
catch(Exception e)
{