class CompetitionController {

    @GetMapping("info/terms-and-conditions")
    public String termsAndConditions(@PathVariable("competitionId") final long competitionId, Model model) {
        CompetitionResource competition = competitionRestService.getCompetitionById(competitionId).getSuccess();
        GrantTermsAndConditionsResource termsAndConditions = competition.getTermsAndConditions();
        model.addAttribute("model", new CompetitionTermsViewModel(competitionId));
        return "competition/info/" + termsAndConditions.getTemplate();
    }

}