public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/xml; charset=UTF-8");
		resp.setCharacterEncoding("UTF-8");

		PrintWriter writer = new PrintWriter(new OutputStreamWriter(
				resp.getOutputStream(), "UTF-8"), true);
		writer.println("<?xml version='1.0' encoding='utf-8'?>");

		String from = req.getParameter("from");
		if (from == null || from.equals("")) {
			Calendar calendar = Calendar.getInstance();
			calendar.set(Calendar.DAY_OF_MONTH, 1);
			calendar.set(Calendar.HOUR_OF_DAY, 5);
			calendar.add(Calendar.MONTH, -2);

			from = format.format(calendar.getTime());
		}

		String to = req.getParameter("to");
		if (to == null || to.equals("")) {
			Calendar calendar = Calendar.getInstance();
			calendar.set(Calendar.HOUR_OF_DAY, 23);
			to = format.format(calendar.getTime());
		}

		long tick = getTick();

		writer.println("<response result='OK' type='games' tick='" + tick
				+ "'>");

		ArrayList<Game> games = getGames(from, to);
		for (Game game : games) {
			writer.print("<game ");
			writer.print("gameId='" + game.getGameId() + "' ");
			writer.print("gameDate='" + game.getDate() + "' ");
			int playerCount = game.getPlayerCount();
			writer.print("playerCount='" + playerCount + "' ");
			writer.println(">");

			for (int i = 0; i < Common.MAX_PLAYER_COUNT; i++) {
				writer.print("<player ");

				writer.print("id='");
				writer.print(i);
				writer.print("' ");

				writer.print("name='");
				if (i < playerCount)
					writer.print(game.getPlayerName(i));
				else
					writer.print("Player " + i);
				writer.print("' ");

				writer.println("/>");
			}

			writer.println("</game>");
		}

		writer.println("</response>");
	}