/**
* Stores the WidgetContext inside the Context, and sets the
* AjaxWidgetIdentifier inside the Widget Context correctly.
*
* @param WidgetContext $widgetContext
* @return void
* @Flow\Session(autoStart=true)
*/
public function store(WidgetContext $widgetContext)
{
$ajaxWidgetId = $this->nextFreeAjaxWidgetId++;
$widgetContext->setAjaxWidgetIdentifier($ajaxWidgetId);
$this->widgetContexts[$ajaxWidgetId] = $widgetContext;
}