}
else //default to HTML
{
output.setContentType(ReportEngineOutput.CONTENT_TYPE_HTML);
HtmlProcessor pr = new HtmlProcessor(jfreeReport);
pr.setStrictLayout(false);
pr.setGenerateXHTML(true);
pr.setFilesystem(new StreamHtmlFilesystem(out));
pr.processReport();
}
output.setContent(out.toByteArray());
return output;