System.getProperties().put(PROP_BUNDLES, osgiBundles);
FrameworkProperties.setProperty(PROP_BUNDLES, osgiBundles);
	private static Bundle[] loadBasicBundles() throws IOException {		long startTime = System.currentTimeMillis();		String osgiBundles = System.getProperty(PROP_BUNDLES);		String osgiExtensions = System.getProperty(PROP_EXTENSIONS);		if (osgiExtensions != null && osgiExtensions.length() > 0) {			osgiBundles = osgiExtensions + ',' + osgiBundles;			System.getProperties().put(PROP_BUNDLES, osgiBundles);		}		String[] installEntries = getArrayFromList(osgiBundles, ","); //$NON-NLS-1$		// get the initial bundle list from the installEntries		InitialBundle[] initialBundles = getInitialBundles(installEntries);		// get the list of currently installed initial bundles from the framework		Bundle[] curInitBundles = getCurrentBundles(true);		// list of bundles to be refreshed		List toRefresh = new ArrayList(curInitBundles.length);		// uninstall any of the currently installed bundles that do not exist in the 		// initial bundle list from installEntries.		uninstallBundles(curInitBundles, initialBundles, toRefresh);		// install the initialBundles that are not already installed.		ArrayList startBundles = new ArrayList(installEntries.length);		installBundles(initialBundles, curInitBundles, startBundles, toRefresh);		// If we installed/uninstalled something, force a refresh of all installed/uninstalled bundles		if (!toRefresh.isEmpty())			refreshPackages((Bundle[]) toRefresh.toArray(new Bundle[toRefresh.size()]));		// schedule all basic bundles to be started		Bundle[] startInitBundles = (Bundle[]) startBundles.toArray(new Bundle[startBundles.size()]);		startBundles(startInitBundles);		if (debug)			System.out.println("Time to load bundles: " + (System.currentTimeMillis() - startTime)); //$NON-NLS-1$		return startInitBundles;	}