class NonIfsCompetitionController {

    @PostMapping("/non-ifs-competition/setup/{competitionId}")
    public String save(Model model,@Valid @ModelAttribute(FORM_ATTR) NonIfsDetailsForm form,
                       BindingResult bindingResult, ValidationHandler validationHandler,
                       @PathVariable("competitionId") Long competitionId) {
        CompetitionResource competition = competitionRestService.getCompetitionById(competitionId).getSuccess();

        Supplier<String> failureView = () -> getDetailsPage(model, competition, Optional.of(form));
        Supplier<String> successView = () -> "redirect:/competition/setup/public-content/" + competitionId;

        return validationHandler.performActionOrBindErrorsToField("", failureView, successView,
                () -> nonIfsDetailsFormSaver.save(form, competition));
    }

}