protected function getWidgetRenderingContext()
{
$renderingContext = $this->getWidgetContext()->getViewHelperChildNodeRenderingContext();
if (!$renderingContext instanceof RenderingContextInterface) {
throw new RenderingContextNotFoundException('Rendering Context not found inside Widget. <f:renderChildren> has been used in an AJAX Request, but is only usable in non-ajax mode.', 1284986604);
}
return $renderingContext;
}