private Game getGame(String gameId) {
		DatastoreService datastore = DatastoreServiceFactory
				.getDatastoreService();

		Filter filter = new FilterPredicate("gameId", FilterOperator.EQUAL,
				gameId);
		Query q = new Query("Game").setFilter(filter);

		// Use PreparedQuery interface to retrieve results
		PreparedQuery pq = datastore.prepare(q);

		int count = 0;
		Game gameSetting = new Game();
		for (Entity gameEntity : pq.asIterable()) {
			if (count++ > 0)
				break;

			gameSetting.setGameId(gameId);
			Date gameDate = (Date) gameEntity.getProperty("gameDate");
			gameSetting.setDate(gameDate.getTime());
			int holeCount = Common.getIntProperty(gameEntity, "holeCount");
			gameSetting.setHoleCount(holeCount);
			int playerCount = Common.getIntProperty(gameEntity, "playerCount");
			gameSetting.setPlayerCount(playerCount);

			if (gameEntity.hasProperty("fieldName")) {
				gameSetting.setFieldName((String) gameEntity
						.getProperty("fieldName"));
			} else {
				gameSetting.setFieldName("");
			}
			gameSetting.setFairwayDifficulty(Common.getIntProperty(gameEntity,
					"fairwayDifficulty"));
			gameSetting.setGreenDifficulty(Common.getIntProperty(gameEntity,
					"greenDifficulty"));

			int holeFee = Common.getIntProperty(gameEntity, "holeFee");
			gameSetting.setHoleFee(holeFee);
			int extraFee = Common.getIntProperty(gameEntity, "extraFee");
			gameSetting.setExtraFee(extraFee);
			int rankingFee = Common.getIntProperty(gameEntity, "rankingFee");
			gameSetting.setRankingFee(rankingFee);

			for (int i = 1; i <= Common.MAX_PLAYER_COUNT; i++) {
				int fee = Common.getIntProperty(gameEntity, "holeFeePerRanking"
						+ i);
				gameSetting.setHoleFeePerRanking(i, fee);

				fee = Common.getIntProperty(gameEntity, "rankingFeePerRanking"
						+ i);
				gameSetting.setRankingFeePerRanking(i, fee);
			}

			for (int i = 0; i < Common.MAX_PLAYER_COUNT; i++) {
				String name = (String) gameEntity.getProperty("playerName" + i);
				gameSetting.setPlayerName(i, name);

				int handicap = Common
						.getIntProperty(gameEntity, "handicap" + i);
				gameSetting.setHandicap(i, handicap);

				int extraScore = Common.getIntProperty(gameEntity, "extraScore"
						+ i);
				gameSetting.setExtraScore(i, extraScore);
			}
		}
		if (count < 1)
			return null;

		return gameSetting;
	}