private function normalizeCmsRequestAttributes(Request $request, DataManager $dataManager)
    {
        if ($request->getMethod() == 'POST') {
            return;
        }

        $page = $dataManager->getPage();
        if (null !== $page) {
            $request->attributes->set('page', $page->getPageName());
        }

        $language = $dataManager->getLanguage();
        if (null !== $language) {
            $request->attributes->set('_locale', $language->getLanguageName());
        }

        $seo = $dataManager->getSeo();
        if (null !== $seo) {
            $request->attributes->set('permalink', $seo->getPermalink());
        }
    }