if (Debug.DEBUG) { BundleWatcher bundleStats = framework.adaptor.getBundleWatcher(); if (bundleStats != null) bundleStats.watchBundle(this, BundleWatcher.START_DEACTIVATION); }
	protected void stopWorker(boolean persistent) throws BundleException {		if (persistent) {			setStatus(Constants.BUNDLE_STARTED, false);		}		if (framework.active) {			if ((state & (STOPPING | RESOLVED | INSTALLED)) != 0) {				return;			}			state = STOPPING;			framework.publishBundleEvent(BundleEvent.STOPPING, this);			try {				context.stop();			} finally {				context.close();				context = null;				checkValid();				state = RESOLVED;				if (Debug.DEBUG && Debug.DEBUG_GENERAL) {					Debug.println("->stopped " + this); //$NON-NLS-1$				}				framework.publishBundleEvent(BundleEvent.STOPPED, this);			}		}	}