private static Controller getController(final String uri,
			final String method) throws GameServerException {

		if (uri.matches(LOGIN_SUFIX_PATTERN) && method.equals(GET_METHOD)) {
			return ApplicationContext.getLoginController();
		} else if (uri.matches(POST_SCORE_PATTERN)
				&& method.equals(POST_METHOD)) {
			return ApplicationContext.getPostScoreController();
		} else if (uri.matches(HIGHSCORE_SUFIX_PATTERN)
				&& method.equals(GET_METHOD)) {
			return ApplicationContext.getHighScoreController();
		}
		throw new GameServerException();
	}