class YourFundingViewModelPopulator {

    public YourFundingViewModel populate(long applicationId, long sectionId, long organisationId, UserResource user) {
        if (user.isInternalUser() || user.hasRole(Role.EXTERNAL_FINANCE) || user.hasRole(Role.KNOWLEDGE_TRANSFER_ADVISER)) {
            return populateManagement(applicationId, sectionId, organisationId, user);
        }
        return populateApplicant(applicationId, sectionId, organisationId, user);
    }

}