public @NotNull IndexedDiscoverabilities.DILookupResult isAnyDiscoverable(EntityType entityType, String orgId, String entityId, Set<DiscoverabilityLevel> discoverabilities) {
        Objects.requireNonNull(entityType, "entityType must not be null");
        Validate.notBlank(orgId, "orgId must not be blank");
        Validate.notBlank(entityId, "entityId must not be blank");

        String key = createLookupKey(entityType, orgId, entityId);

        // TODO(msavy): can we do this check without creating a new map? Would be nice...
        List<DiscoverabilityLevel> prefixDiscoverabilities = discoverabilityIndex.prefixMap(key).values()
                .stream()
                .map(DiscoverabilityDto::getDiscoverability)
                .collect(Collectors.toList());

        if (prefixDiscoverabilities.isEmpty()) {
            return DILookupResult.NOT_IN_INDEX;
        } else {
            if (Collections.disjoint(prefixDiscoverabilities, discoverabilities)) {
                return DILookupResult.NOT_DISCOVERABLE;
            } else {
                return DILookupResult.DISCOVERABLE;
            }
        }
    }
Add some DiscoverabilityDtos to the index

@param discoverabilityEntities views to index
manager/api/security/src/main/java/io/apiman/manager/api/security/impl/IndexedDiscoverabilities.java