private void applyLogin(String name, JSONObject json) { JSONObject jsonObj = JSONHelper.getObject(json, "data"); boolean found = JSONHelper.getPrimitiveBoolean(jsonObj, "found", false); if (!found) { Window.alert("Пользователь " + GWTUtils.safeString(name) + " не найден!"); } else { elName.setValue(""); setCurrentUser(name); Window.Location.reload(); } }