boolean exporting = false;
if (framework.isActive()) {
if (state == RESOLVED) {
BundleLoaderProxy curProxy = getLoaderProxy();
exporting = curProxy.inUse();
if (exporting) {
// add the bundle data to the list of removals
framework.packageAdmin.addRemovalPending(bundledata);
// make sure the BundleLoader is created.
curProxy.getBundleLoader().createClassLoader();