code: public void bundleChanged(BundleEvent event) {
          Bundle eventBundle = event.getBundle();
          ExtendedBundle extendedBundle = new ExtendedBundle(extendedBundleContext, eventBundle);
          if (extendedBundle.isRelevantForImportEnhancements()) {
              // TODO: We need to refresh the bundles here if we detect that they were started before we could enhance
              // them!
          }
          switch (event.getType()) {
              // Remove bundle from cache in some circumstances
              case BundleEvent.UPDATED:
              case BundleEvent.UNINSTALLED:
              case BundleEvent.UNRESOLVED:
              case BundleEvent.STOPPED:
                  synchronized (extendedBundles) {
                      extendedBundles.remove(event.getBundle().getBundleId());
                  }
          }
      }
docs: {@inheritDoc}