public function hydrateLegacyHandler(HydrationEvent $event)
    {
        $entity = $event->getArgument('entity');
        if ($entity instanceof Content) {
            $entity->setLegacyService($this->legacy);
        }
    }