private static List<String> nonPublicApiPackages(File jarFile) {
        var manifest = getOsgiManifest(jarFile);
        if (manifest == null) return List.of();
        return getMainAttributeValue(manifest, "X-JDisc-Non-PublicApi-Export-Package")
                .map(s -> List.of(s.split(",")))
                .orElseGet(ArrayList::new);
    }
Static utilities for analyzing jar files.

@author Tony Vaagenes
@author ollivir
@author gjoranv
bundle-plugin/src/main/java/com/yahoo/container/plugin/bundle/AnalyzeBundle.java