ClassLoader bundleClassLoader = new BundleDelegatingClassLoader(c.getBundle(),
this.getClass().getClassLoader());
super.setExtension(bundleClassLoader, ClassLoader.class);
// Setup the resource resolver with the bundle classloader
ResourceManager rm = super.getExtension(ResourceManager.class);
rm.addResourceResolver(new ClassLoaderResolver(bundleClassLoader));
super.setExtension(c, BundleContext.class);
}