class AssessorProfileDeclarationEditController {

    @PostMapping(path = "/edit", params = {"removeAppointment"})
    public String removeAppointment(@ModelAttribute(FORM_ATTR_NAME) AssessorProfileDeclarationForm form,
                                    @RequestParam(name = "removeAppointment") Integer position) {
        form.getAppointments().remove(position.intValue());
        return doEditDeclaration();
    }

}