if (autoStop == null) autoStop = (String) headers.get(EclipseAdaptorConstants.LEGACY);
	private void selectBundlesToStop(Bundle[] allBundles, Map allToStop, Map toStopWithNames) {		// gather all active "auto-stoppable" bundles		for (int i = 0; i < allBundles.length; i++) {			if (allBundles[i].getState() != Bundle.ACTIVE)				continue;			// we are looking for three headers: LEGACY, ECLIPSE_AUTOSTOP and REQUIRE_BUNDLE				//TODO Here we can remove the test on LEGACY			Dictionary headers = allBundles[i].getHeaders();			String autoStop = (String) headers.get(EclipseAdaptorConstants.ECLIPSE_AUTOSTOP);			if (autoStop == null)				autoStop = (String) headers.get(EclipseAdaptorConstants.LEGACY); //$NON-NLS-1$			if (!"true".equalsIgnoreCase(autoStop)) //$NON-NLS-1$				continue;			// remember we want to stop this bundle			allToStop.put(allBundles[i], headers.get(Constants.REQUIRE_BUNDLE));			// bundles with symbolic names may be required by others (we will order them later)			String symbolicName = allBundles[i].getSymbolicName();			if (symbolicName != null)				toStopWithNames.put(symbolicName, allBundles[i]);		}	}