private AbstractBundle[] getInstalledBundles(BundleRepository bundles) {
private AbstractBundle[] getInstalledBundles(BundleRepository bundles, boolean sortByDependency) {
	private AbstractBundle[] getInstalledBundles(BundleRepository bundles) {		/* make copy of bundles vector in case it is modified during launch */		AbstractBundle[] installedBundles;		synchronized (bundles) {			List allBundles = bundles.getBundles();			installedBundles = new AbstractBundle[allBundles.size()];			allBundles.toArray(installedBundles);			/* sort bundle array in ascending startlevel / bundle id order			 * so that bundles are started in ascending order.			 */			Util.sort(installedBundles, 0, installedBundles.length);		}		return installedBundles;	}