} else if (inclusion) {
// This is an inclusion/portlet being rendered in context so we do
// not have to open the canvas page as that has already been done by
// the including page but we may have to wrap the contents of the
// inclusion in something.
protocol.openInclusionPage(pattributes);
}
} catch (LayoutException e) {
logger.error("unexpected-exception", e);
throw new PAPIException(e);
} catch (RepositoryException e) {