private function tryDispatch($eventName, MetaModelsBootEvent $event)
    {
        $dispatcher = System::getContainer()->get('event_dispatcher');
        if ($dispatcher->hasListeners($eventName)) {
            // @codingStandardsIgnoreStart
            @trigger_error('Event "' . $eventName . '" has been deprecated - Use registered services.', E_USER_DEPRECATED);
            // @codingStandardsIgnoreEnd
            $dispatcher->dispatch($eventName, $event);
        }
    }