if (framework.active) { if ((state & (STARTING | ACTIVE)) != 0) { return; }  if (state == INSTALLED) { if (!framework.packageAdmin.resolveBundles(new Bundle[] {this})) { throw new BundleException(getResolutionFailureMessage()); } }  if (Debug.DEBUG && Debug.DEBUG_GENERAL) { Debug.println("Bundle: Active sl = " + framework.startLevelManager.getStartLevel() + "; Bundle " + getBundleId() + " sl = " + getStartLevel()); }  if (getStartLevel() <= framework.startLevelManager.getStartLevel()) { if (state == UNINSTALLED) { throw new BundleException(Msg.formatter.getString("BUNDLE_UNINSTALLED_EXCEPTION")); } if (framework.active) { state = ACTIVE;  if (Debug.DEBUG && Debug.DEBUG_GENERAL) { Debug.println("->started " + this); }  framework.publishBundleEvent(BundleEvent.STARTED, this); } } }  if (persistent) { setStatus(Constants.BUNDLE_STARTED, true); }
throw new BundleException(Msg.formatter.getString("BUNDLE_FRAGMENT_STOP", this));
	protected void startWorker(boolean persistent) throws BundleException {		if (framework.active) {			if ((state & (STARTING | ACTIVE)) != 0) {				return;			}			if (state == INSTALLED) {				if (!framework.packageAdmin.resolveBundles(new Bundle[] {this})) {					throw new BundleException(getResolutionFailureMessage());				}			}			if (Debug.DEBUG && Debug.DEBUG_GENERAL) {				Debug.println("Bundle: Active sl = " + framework.startLevelManager.getStartLevel() + "; Bundle " + getBundleId() + " sl = " + getStartLevel()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$			}			if (getStartLevel() <= framework.startLevelManager.getStartLevel()) {				if (state == UNINSTALLED) {					throw new BundleException(Msg.formatter.getString("BUNDLE_UNINSTALLED_EXCEPTION")); //$NON-NLS-1$				}				if (framework.active) {					state = ACTIVE;					if (Debug.DEBUG && Debug.DEBUG_GENERAL) {						Debug.println("->started " + this); //$NON-NLS-1$					}					framework.publishBundleEvent(BundleEvent.STARTED, this);				}			}		}		if (persistent) {			setStatus(Constants.BUNDLE_STARTED, true);		}	}