class ManageInnovationLeadsModelPopulator {

    public ManageInnovationLeadsViewModel populateModel(CompetitionResource competition) {
        List<UserResource> availableInnovationLeadsNotAssignedToCompetition = competitionSetupInnovationLeadRestService.findAvailableInnovationLeadsNotAssignedToCompetition(competition.getId()).getSuccess();
        List<UserResource> innovationLeadsAssignedToCompetition = competitionSetupInnovationLeadRestService.findInnovationLeadsAssignedToCompetition(competition.getId()).getSuccess();

        return new ManageInnovationLeadsViewModel(competition.getId(), competition.getName(),
                competition.getLeadTechnologistName(), competition.getExecutiveName(), competition.getInnovationSectorName(),
                competition.getInnovationAreaNames(), sortByName(availableInnovationLeadsNotAssignedToCompetition),
                sortByName(innovationLeadsAssignedToCompetition));
    }

}