public static function getEventListener($className, EntityManager $manager)
    {
        foreach ($manager->getEventManager()->getListeners() as $listeners) {
            foreach ($listeners as $listener) {
                if ($listener instanceof $className) {
                    return $listener;
                }
            }
        }

        return null;
    }