boolean suspended = framework.suspendBundle(bundle, true); if (!suspended) { throw new BundleException(Msg.BUNDLE_STATE_CHANGE_EXCEPTION); }
framework.suspendBundle(bundle, true);
	private void suspendBundle(AbstractBundle bundle) throws BundleException {		if (bundle.isActive() && !bundle.isFragment()) {			boolean suspended = framework.suspendBundle(bundle, true);			if (!suspended) {				throw new BundleException(Msg.BUNDLE_STATE_CHANGE_EXCEPTION); 			}		} else {			if (bundle.getStateChanging() != Thread.currentThread())				bundle.beginStateChange();		}		if (Debug.DEBUG && Debug.DEBUG_PACKAGEADMIN) {			if (bundle.stateChanging == null) {				Debug.println("Bundle state change lock is clear! " + bundle); //$NON-NLS-1$				Debug.printStackTrace(new Exception("Stack trace")); //$NON-NLS-1$			}		}	}