}
private void copyBufferContentsToOutput() {
try {
HtmlCanvas outCanvas = new HtmlServletCanvas(request, response, output);
outCanvas.render(docType);
outCanvas.html(htmlAttributes);
// add any head elements
outCanvas.head(headAttributes);
if (headElements != null) {
for (Renderable each : headElements.getRenderables()) {