class NonIfsDetailsViewModelPopulator {

    public NonIfsDetailsViewModel populate(CompetitionResource competition) {
        List<InnovationSectorResource> innovationSectorResourceList = categoryRestService.getInnovationSectors().getSuccess();
        removeOpenSector(innovationSectorResourceList);
        List<InnovationAreaResource> innovationAreaResources = categoryRestService.getInnovationAreas().getSuccess();

        return new NonIfsDetailsViewModel(competition, innovationSectorResourceList, innovationAreaResources, asList(FundingType.values()));
    }

}