class ApplicationInnovationAreaPopulator {

    public InnovationAreaViewModel populate(ApplicationResource applicationResource, Long questionId) {

        InnovationAreaViewModel innovationAreaViewModel = new InnovationAreaViewModel();
        innovationAreaViewModel.setAvailableInnovationAreas(applicationInnovationAreaRestService.getAvailableInnovationAreasForApplication(applicationResource.getId()).getSuccess());
        innovationAreaViewModel.setQuestionId(questionId);
        innovationAreaViewModel.setApplicationId(applicationResource.getId());
        innovationAreaViewModel.setCompetitionName(applicationResource.getCompetitionName());
        innovationAreaViewModel.setApplicationName(applicationResource.getName());

        setInnovationAreaChoice(applicationResource, innovationAreaViewModel);

        return innovationAreaViewModel;
    }

}