class AssessorProfileDeclarationEditController {

    @GetMapping(path = "/edit")
    public String getEditDeclaration(UserResource loggedInUser,
                                     @ModelAttribute(name = FORM_ATTR_NAME, binding = false) AssessorProfileDeclarationForm form,
                                     BindingResult bindingResult) {
        if (!bindingResult.hasErrors()) {
            assessorProfileDeclarationFormPopulator.populateForm(form, loggedInUser);
        }
        return doEditDeclaration();
    }

}