private Dictionary<String, String> retrieveHeaders(URL location) throws IOException {
            try (JarFile jarFile = new JarFile(location.getFile())) {
                Attributes attributes = jarFile.getManifest().getMainAttributes();
                Hashtable<String, String> ret = new Hashtable<>();
                attributes.forEach((k, v) -> ret.put(k.toString(), v.toString()));
                return ret;
            }
        }
A (mock) OSGI implementation which loads classes from the system classpath

@author Tony Vaagenes
@author ollivir
standalone-container/src/main/java/com/yahoo/application/container/impl/ClassLoaderOsgiFramework.java