private function getReferentialIntegrityResponse($webspace, $references, $id, $locale)
    {
        $data = [
            'structures' => [],
            'other' => [],
            'isDefault' => $this->defaultSnippetManager->isDefault($id),
        ];

        foreach ($references as $reference) {
            if ($reference->getParent()->isNodeType('sulu:page')) {
                $content = $this->contentMapper->load(
                    $reference->getParent()->getIdentifier(),
                    $webspace,
                    $locale,
                    true
                );
                $data['structures'][] = $content->toArray();
            } else {
                $data['other'][] = $reference->getParent()->getPath();
            }
        }

        return new JsonResponse($data, 409);
    }