systemState.removeBundle(data.getBundleID());
systemState.removeBundle(bundleData.getBundleID());
	protected void updateState(BundleData bundleData, int type) throws BundleException {		if (stateManager == null) {			invalidState = true;			return;		}		State systemState = stateManager.getSystemState();		switch (type) {			case BundleEvent.UPDATED:				systemState.removeBundle(bundleData.getBundleID());				// fall through to INSTALLED			case BundleEvent.INSTALLED:				BundleDescription newDescription = stateManager.getFactory().createBundleDescription(bundleData.getManifest(), bundleData.getLocation(), bundleData.getBundleID());				systemState.addBundle(newDescription);				break;			case BundleEvent.UNINSTALLED:				systemState.removeBundle(data.getBundleID());				break;		}	}