// Open the canvas page.
canvasAttributes.setStyles(styles);
VolantisProtocol protocol = getProtocol(context);
protocol.setWriteHead(false);
protocol.openAJAXResponsePage((ResponseBodyAttributes)protocolAttributes);
} catch (PolicyException e) {
logger.error("unexpected-exception", e);
throw new XDIMEException(e);
} catch (RepositoryException e) {
logger.error("repository-exception", e);