public function viewMenu($nodeId, $modified, $expiry, $perm)
    {
        $response = new Response();
        if ($this->getParameter('treemenu.http_cache')) {
            $response->setMaxAge($this->getParameter('treemenu.ttl_cache'));
        }

        $result = $this->treeMenuKernel->run();
        if ($result->hasAttribute('lastModified')) {
            $response->setLastModified($result->getAttribute('lastModified'));
        }
        $response->setContent($result->getContent());

        return $response;
    }