Set getFeaturesForBundle()

in src/main/java/org/apache/sling/feature/apiregions/impl/ResolverHookImpl.java [306:315]


    Set<String> getFeaturesForBundle(Bundle bundle) {
        // Look up the bsn and bundle version initially associated with the location. If the bundle
        // for the specified location was later updated, the initial bsn+version is still used to look up the
        // api regions configuration
        Map.Entry<String, Version> bsnVer = this.configuration.getBundleLocationConfigMap()
                .computeIfAbsent(bundle.getLocation(), l -> new AbstractMap.SimpleEntry<>(
                        bundle.getSymbolicName(), bundle.getVersion()));

        return getFeaturesForBundleFromConfig(bsnVer.getKey(), bsnVer.getValue());
    }