return new StateManager(bundleRootDir);
stateManager = new StateManager(bundleRootDir); 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) {  } }  systemState.resolve(); return stateManager;
	protected StateManager createStateManager(){		return new StateManager(bundleRootDir);	}