protected void stopWorker(boolean persistent) throws BundleException { if (persistent) {
protected void stopWorker(int options) throws BundleException { if ((options & STOP_TRANSIENT) == 0) {
	protected void stopWorker(boolean persistent) throws BundleException {		if (persistent) {			setStatus(Constants.BUNDLE_STARTED, false);		}		if (framework.active) {			if ((state & (STOPPING | RESOLVED | INSTALLED)) != 0) {				return;			}			if (Debug.DEBUG) {				BundleWatcher bundleStats = framework.adaptor.getBundleWatcher();				if (bundleStats != null)					bundleStats.watchBundle(this, BundleWatcher.START_DEACTIVATION);			}			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);				if (Debug.DEBUG) {					BundleWatcher bundleStats = framework.adaptor.getBundleWatcher();					if (bundleStats != null)						bundleStats.watchBundle(this, BundleWatcher.END_DEACTIVATION);				}			}		}	}