class LeadInternationalOrganisationViewModelPopulator {

    public LeadInternationalOrganisationViewModel populateModel(long competitionId, CompetitionOrganisationConfigResource competitionOrganisationConfigResource) {

        CompetitionResource competition = competitionRestService.getCompetitionById(competitionId).getSuccess();
        return new LeadInternationalOrganisationViewModel(competition, competitionOrganisationConfigResource.getInternationalLeadOrganisationAllowed());
    }

}