private static boolean installBundles(InitialBundle[] initialBundles, Bundle[] curInitBundles, ArrayList startBundles, ArrayList newInitBundles) { boolean installed = false;
private static void installBundles(InitialBundle[] initialBundles, Bundle[] curInitBundles, ArrayList startBundles, List toRefresh) {
	private static boolean installBundles(InitialBundle[] initialBundles, Bundle[] curInitBundles, ArrayList startBundles, ArrayList newInitBundles) {		boolean installed = false;		ServiceReference reference = context.getServiceReference(StartLevel.class.getName());		StartLevel startService = null;		if (reference != null)			startService = (StartLevel) context.getService(reference);		for (int i = 0; i < initialBundles.length; i++) {			Bundle osgiBundle = getBundleByLocation(initialBundles[i].locationString, curInitBundles);			try {				// don't need to install if it is already installed				if (osgiBundle == null) {					InputStream in = initialBundles[i].location.openStream();					osgiBundle = context.installBundle(initialBundles[i].locationString, in);					installed = true;					if (initialBundles[i].level >= 0 && startService != null)						startService.setBundleStartLevel(osgiBundle, initialBundles[i].level);				}				if (initialBundles[i].start)					startBundles.add(osgiBundle);				newInitBundles.add(osgiBundle);			} catch (BundleException e) {				FrameworkLogEntry entry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_FAILED_INSTALL", initialBundles[i].location), 0, e, null); //$NON-NLS-1$				log.log(entry);			} catch (IOException e) {				FrameworkLogEntry entry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_FAILED_INSTALL", initialBundles[i].location), 0, e, null); //$NON-NLS-1$				log.log(entry);			}		}		context.ungetService(reference);		return installed;	}