class AssessmentSummaryController {

    @GetMapping("/{assessmentId}/summary")
    public String getSummary(Model model,
                             @ModelAttribute(name = FORM_ATTR_NAME, binding = false) AssessmentSummaryForm form,
                             BindingResult bindingResult,
                             @PathVariable("assessmentId") long assessmentId) {
        AssessmentResource assessment = assessmentService.getById(assessmentId);
        if (!bindingResult.hasErrors()) {
            populateFormWithExistingValues(form, assessment);
        }
        model.addAttribute("model", assessmentSummaryModelPopulator.populateModel(assessment));
        return "assessment/application-summary";
    }

}