public function execute(HTTPRequestCustom $request)
 {
     $view = new FileTemplate('sitemap/GenerateXMLSitemapController.tpl');
     $lang = LangLoader::get('common', 'sitemap');
     $view->add_lang($lang);
     try {
         SitemapXMLFileService::try_to_generate();
     } catch (IOException $ex) {
         $view->put_all(array('C_GOT_ERROR' => true));
     }
     $view->put_all(array('U_GENERATE' => SitemapUrlBuilder::get_xml_file_generation()->rel()));
     $response = new AdminSitemapResponse($view);
     $response->get_graphical_environment()->set_page_title($lang['generate_xml_file'], $lang['sitemap']);
     return $response;
 }
 private function build_response(Template $view)
 {
     $response = new AdminSitemapResponse($view);
     $response->get_graphical_environment()->set_page_title($this->lang['general_config']);
     return $response;
 }