tempSL++; incFWSL(i + 1, callerBundle);
} else { AbstractBundle[] sortedBundles = getInstalledBundles(framework.bundles); for (int i = tempSL; i > newSL; i--) { if (Debug.DEBUG && Debug.DEBUG_STARTLEVEL) { Debug.println("sync - decrementing Startlevel from " + tempSL); } tempSL--; decFWSL(i - 1, sortedBundles); }
	private void doSetStartLevel(int newSL, AbstractBundle callerBundle) {		synchronized (lock) {			int tempSL = activeSL;			if (newSL > tempSL) {				for (int i = tempSL; i < newSL; i++) {					if (Debug.DEBUG && Debug.DEBUG_STARTLEVEL) {						Debug.println("sync - incrementing Startlevel from " + tempSL); //$NON-NLS-1$					}					tempSL++;					incFWSL(i + 1, callerBundle);				}			} else {				for (int i = tempSL; i > newSL; i--) {					if (Debug.DEBUG && Debug.DEBUG_STARTLEVEL) {						Debug.println("sync - decrementing Startlevel from " + tempSL); //$NON-NLS-1$					}					tempSL--;					decFWSL(i - 1);				}			}			framework.publishFrameworkEvent(FrameworkEvent.STARTLEVEL_CHANGED, callerBundle, null);			if (Debug.DEBUG && Debug.DEBUG_STARTLEVEL) {				Debug.println("StartLevelImpl: doSetStartLevel: STARTLEVEL_CHANGED event published"); //$NON-NLS-1$			}		}	}