@RequestMapping(value = "/login", method = RequestMethod.GET, produces = "application/json")
    private @ResponseBody User checkLoginAvailability(@RequestParam String login) {
        User user = appContext.getUserService().readUserByLogin(login);
        if (user != null) {
            return user;
        }
        return new User();
    }