private static Manifest getOsgiManifest(File jarFile) {
        Optional<Manifest> jarManifest = JarFiles.getManifest(jarFile);
        if (jarManifest.isPresent()) {
            Manifest manifest = jarManifest.get();
            if (isOsgiManifest(manifest)) {
                return manifest;
            }
        }
        return null;
    }
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