public function unpublishContentfulEntry(DeletedEntry $remoteEntry): void
    {
        /** @var \Contentful\Delivery\SystemProperties $systemProperties */
        $systemProperties = $remoteEntry->getSystemProperties();

        $space = $systemProperties->getSpace();
        if ($space === null) {
            return;
        }

        $id = $space->getId() . '|' . $remoteEntry->getId();

        $contentfulEntry = $this->findContentfulEntry($id);
        if ($contentfulEntry instanceof ContentfulEntry) {
            $contentfulEntry->setIsPublished(false);
            $this->entityManager->persist($contentfulEntry);
            $this->entityManager->flush();
        }
    }