// Get the page context from the request
MarinerPageContext pageContext
= ContextInternals.getMarinerPageContext(context);
if (pageContext.insideXDIMECPElement()) {
throw new PAPIException(EXCEPTION_LOCALIZER.format(
"element-not-allowed-inside-xdimecp", papiAttributes.getElementName()));
}
if (this.isStylingEnabled) {