protected function dispatchCrudEvent($entity, $action, $eventName)
    {
        $event = new AdminCrudEvent($entity, $action, $this->getUser());
        $this->get('event_dispatcher')->dispatch($eventName, $event);

        return $event;
    }