public function ajaxChoiceListAction(Request $request, $type)
    {
        return AjaxChoiceListHelper::generateResponse($request,
            $this->get('form.factory')->createBuilder($type, null,
                ['select2' => ['enabled' => true, 'ajax' => true]]));
    }