private function displayXML($menus)
    {
        $treeList = [];
        $manager  = $this->getTreeManager();

        /** @var \MakinaCorpus\Umenu\Menu $menu */
        foreach ($menus as $menu) {
            $tree = $manager->buildTree($menu->getId(), true);
            if (!$tree->isEmpty()) {
                $treeList[] = $tree;
            }
        }

        $output = $this->renderView('@ucms_seo/views/sitemap.xml.twig', ['menus_tree' => $treeList]);

        return new Response($output, 200, ['content-type' => 'application/xml']);
    }