WidgetRenderer widgetRenderer = getWidgetRenderer(context);
if (null == widgetRenderer){
// Do fallback if widget is not supported by the protocol
return doFallbackOpen(context, attributes);
}
widgetRenderer.renderOpen(getProtocol(context), (WidgetAttributes)protocolAttributes);
if (!widgetRenderer.shouldRenderContents(getProtocol(context), (WidgetAttributes)protocolAttributes)) {
return XDIMEResult.SKIP_ELEMENT_BODY;
}
} catch (ProtocolException e) {
logger.error("rendering-error", getTagName(), e);