private function loadService()
    {
        $this->getEventManager()->dispatch(self::EVENT_BEFORE_LOAD_SERVICE, $this);

        foreach ($this->registerBundles() as $bundle) {
            $bundle->loadService();
        }

        $this->getEventManager()->dispatch(self::EVENT_AFTER_LOAD_SERVICE, $this);
    }