class OnHoldController {

    @GetMapping
    public String viewOnHoldStatus(@ModelAttribute(value = "form", binding = false) OnHoldCommentForm form,
                                   BindingResult bindingResult,
                                   @PathVariable long projectId,
                                   @PathVariable long competitionId,
                                   Model model) {
        ProjectResource project = projectRestService.getProjectById(projectId).getSuccess();

        if (project.getProjectState() != ON_HOLD) {
            return redirectToManagePage(projectId, competitionId);
        }
        ProjectStateCommentsResource comments = projectStateRestService.findOpenComments(projectId).getSuccess();
        form.setCommentId(comments.id);
        model.addAttribute("model", new OnHoldViewModel(project, comments));
        return "project/on-hold-status";
    }

}