private function getDomainName(Request $request)
    {
        $domain = $this->container->getParameter('networking_init_cms.xml_sitemap.sitemap_url');
        if ($domain == '') {
            //domain is not set in config.yml
            $domain = $request->getScheme().'://'.$request->getHost();
        }

        return $domain;
    }