uninstallURLStreamHandlerFactory(); uninstallContentHandlerFactory();
	public synchronized void close() {		if (active) {			shutdown();		}		synchronized (bundles) {			List allBundles = bundles.getBundles();			int size = allBundles.size();			for (int i = 0; i < size; i++) {				AbstractBundle bundle = (AbstractBundle) allBundles.get(i);				bundle.close();			}			bundles.removeAllBundles();		}		serviceRegistry = null;		if (bundleEvent != null) {			bundleEvent.removeAllListeners();			bundleEvent = null;		}		if (bundleEventSync != null) {			bundleEventSync.removeAllListeners();			bundleEventSync = null;		}		if (serviceEvent != null) {			serviceEvent.removeAllListeners();			serviceEvent = null;		}		if (frameworkEvent != null) {			frameworkEvent.removeAllListeners();			frameworkEvent = null;		}		if (eventManager != null) {			eventManager.close();			eventManager = null;		}		permissionAdmin = null;		condPermAdmin = null;		packageAdmin = null;		adaptor = null;	}