public function setEventManager(EventManagerInterface $events)
    {
        $events->setIdentifiers(array(
            __CLASS__,
            get_class($this),
        ));
        $events->attach(new OperationAnnotationsListener());
        $events->attach(new ServiceAnnotationsListener());
        $this->events = $events;
        return $this;
    }