return;
}
//1. remove the bundle from the parent DelegatingBundle
Bundle configurationBundle = bundleContext.getBundle();
if (configurationBundle instanceof DelegatingBundle) {
DelegatingBundle delegatingBundle = (DelegatingBundle) configurationBundle;
delegatingBundle.removeBundle(sharedLibBundle);
}
//2. unregister the share lib bundle to the share lib bundle extender
ServiceReference sharedLibExtenderReference = null;
try {
sharedLibExtenderReference = bundleContext.getServiceReference(SharedLibExtender.class.getName());