VolantisProtocol protocol = getProtocol(context);
protocol.setWriteHead(true);
protocol.openCanvasPage(canvasAttributes);
} catch (PolicyException e) {
logger.error("unexpected-exception", e);
throw new XDIMEException(e);
} catch (RepositoryException e) {
logger.error("repository-exception", e);
throw new XDIMEException(e);
} catch (IOException e) {
logger.error("unexpected-ioexception", e);
throw new XDIMEException(e);
} catch (ProtocolException e) {
logger.error("rendering-error", getTagName(), e);
throw new XDIMEException(exceptionLocalizer.format(
"rendering-error", getTagName()), e);
}
// The previous call to protocol.openCanvas will push the page and body
// output buffers onto the stack, hiding the output buffer for the