// render content. use size of about 24K for a standard page
CachedContent rendererOutput = new CachedContent(24567, contentType);
try {
log.debug("Doing rendering");
renderer.render(model, rendererOutput.getCachedWriter());
// flush rendered output and close
rendererOutput.flush();
rendererOutput.close();
} catch (Exception e) {