class ApplicationCreationController {

    @GetMapping("/start-application/{competitionId}")
    public String checkEligibility(Model model,
                                   @PathVariable(COMPETITION_ID) Long competitionId,
                                   HttpServletResponse response) {
        PublicContentItemResource publicContentItem = publicContentItemRestService.getItemByCompetitionId(competitionId).getSuccess();
        if (!isCompetitionReady(publicContentItem)) {
            return "redirect:/competition/search";
        }
        model.addAttribute(COMPETITION_ID, competitionId);
        registrationCookieService.deleteAllRegistrationJourneyCookies(response);
        registrationCookieService.saveToCompetitionIdCookie(competitionId, response);

        return "create-application/start-application";
    }

}