public function handleGetReference(EncodeReferenceEvent $event)
    {
        $definition = $event->getObject();

        if ($definition instanceof Definition) {
            $this->setReference($definition, $event);
        }
    }