{
_initIfNeeded(context);
// See if there is a possiblity of short-circuiting the current
// Render Response
ExtendedRenderKitService service = _getExtendedRenderKitService(context);
if ((service != null) &&
service.shortCircuitRenderView(context))
{
// Yup, we don't need to do anything
;
}
else
{
try
{
if (service != null)
service.encodeBegin(context);
InternalView internal = _getInternalView(context,
viewToRender.getViewId());
if (internal != null)
{
internal.renderView(context, viewToRender);
}
else
{
super.renderView(context, viewToRender);
}
if (service != null)
service.encodeEnd(context);
}
finally
{
if (service != null)
service.encodeFinally(context);
}
}
}