// So we need to cope with multiple equinox frameworks, so we can't just listen to our
// BundleContext. Instead we add a listener to Bundle 0 of the framework bundle associated
// with the bundle passed in.
BundleContext ctx = b.getBundleContext().getBundle(0).getBundleContext();
ctx.addBundleListener(this);
ctx.addFrameworkListener(this);
}
private synchronized ClassLoader put(Bundle b, ClassLoader cl) {
// If the bundle is uninstalled or installed then there is no classloader so we should
// just return null. This is a last second sanity check to avoid memory leaks that could