public function nestedAction(Request $request, $content)
    {
        if (!$content instanceof Content) {
            $content = $this->get('opifer.content.content_manager')->getRepository()
                ->findOneById($content);
        }

        // If the content could not be found or is inactive, return an empty response
        // to avoid rendering 404 pages as nested content.
        if (!$content || !$content->getActive()) {
            return new Response('');
        }

        return $this->forward('OpiferContentBundle:Frontend/Content:view', [
            'request' => $request,
            'content' => $content
        ]);
    }