protected function getInitialPageLocalization()
	{
		$localization = null;

		$cookieBag = $this->container->getRequest()->cookies;

		if ($cookieBag->has(self::INITIAL_PAGE_ID_COOKIE)) {
			$localization = $this->getEntityManager()->find(
					Localization::CN(),
					$cookieBag->get(self::INITIAL_PAGE_ID_COOKIE)
			);
		}

		// Root page otherwise
		if ($localization === null) {
			$pageRepository = $this->getEntityManager()
				->getRepository(Page::CN());
			/* @var $pageRepository PageRepository */

			$pages = $pageRepository->getRootNodes();

			if (! empty($pages)) {
				/* @var $pages AbstractPage[] */
				return $pages[0]->getLocalization($this->getCurrentLocale()->getId());
			}
		}

		return null;
	}