class OrganisationServiceImpl implements OrganisationService {

    public OrganisationResource getLeadOrganisation(long applicationId, List<OrganisationResource> applicationOrganisations) {
        ProcessRoleResource leadApplicantUser = userService.getLeadApplicantProcessRole(applicationId);
        return applicationOrganisations.stream().filter(org -> org.getId().equals(leadApplicantUser.getOrganisationId())).findFirst().orElse(null);
    }

    public  OrganisationServiceImpl(OrganisationRestService organisationRestService,
                                   UserRestService userRestService, UserService userService);

}