public function onBootstrap($e)
    {
        $eventManager   = $e->getApplication()->getEventManager();
        $serviceManager = $e->getApplication()->getServiceManager();
        $options        = $serviceManager->get('dlcdoctrine_module_options');
        
        if ($options->getEnableAutoFlushFinishListener()) {
            $serviceManager->get('dlcdoctrine_event_finishlistener')
                           ->attach($eventManager);
        }
    }