stateManager = new StateManager(getBundleStoreRootDir());
stateManager = new StateManager(null, getBundleStoreRootDir());
	protected StateManager createStateManager() {		stateManager = new StateManager(getBundleStoreRootDir());		State systemState = stateManager.getSystemState();		if (systemState != null)			return stateManager;		systemState = stateManager.createSystemState();		Vector installedBundles = getInstalledBundles();		if (installedBundles == null)			return stateManager;		StateObjectFactory factory = stateManager.getFactory();		for (Iterator iter = installedBundles.iterator(); iter.hasNext();) {			BundleData toAdd = (BundleData) iter.next();			try {				Dictionary manifest = toAdd.getManifest();				BundleDescription newDescription = factory.createBundleDescription(manifest, toAdd.getLocation(), toAdd.getBundleID());				systemState.addBundle(newDescription);			} catch (BundleException be) {				// just ignore bundle datas with invalid manifests			}		}		// we need the state resolved		systemState.resolve();		return stateManager;	}