ValidationError error = new LocalizableError("usernameDoesNotExist", username);
ValidationError error = new LocalizableError("usernameDoesNotExist");
    public Resolution login() {        PersonManager pm = new PersonManager();        Person person = pm.getPerson(this.username);        if (person == null) {            ValidationError error = new LocalizableError("usernameDoesNotExist", username);            getContext().getValidationErrors().add("username", error);            return getContext().getSourcePageResolution();        }        else if (!person.getPassword().equals(password)) {            ValidationError error = new LocalizableError("incorrectPassword");            getContext().getValidationErrors().add("password", error);            return getContext().getSourcePageResolution();        }        else {            getContext().setUser(person);            if (this.targetUrl != null) {                return new RedirectResolution(this.targetUrl);            }            else {                return new RedirectResolution("/bugzooky/BugList.jsp");            }        }    }