class ProjectServiceImpl extends AbstractProjectServiceImpl implements ProjectService {

    @Override
    public ServiceResult<Boolean> existsOnApplication(long projectId,  long organisationId) {
        return getProject(projectId).andOnSuccessReturn(p -> p.getApplication().getApplicantProcessRoles().stream()
                .anyMatch(pr -> pr.getOrganisationId() == organisationId));
    }

}