@RequestMapping(value = "/", method = RequestMethod.GET)
	public String home(Locale locale, Model model) {
		logger.info("Welcome home! The client locale is {}.", locale);

		Date date = new Date();
		DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);

		String formattedDate = dateFormat.format(date);

		model.addAttribute("serverTime", formattedDate);

		File outFile = new File("/resources/");
		WebSitemapGenerator wsg;
		try {
			wsg = new WebSitemapGenerator("http://localhost:8080/web/", outFile);
			for (int i = 0; i < 60000; i++)
				wsg.addUrl("http://localhost:8080/web/doc" + i + ".html");
			wsg.write();
			wsg.writeSitemapsWithIndex(); // generate the sitemap_index.xml
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return "home";
	}