if (!state.isResolved()) { state.resolve(false); }
	protected void setResolvedBundles(){		State state = framework.adaptor.getState();		if (!state.isResolved()) {			state.resolve(false);		}		BundleDescription[] descriptions = state.getBundles();		for (int i=0; i<descriptions.length; i++) {			long bundleId = descriptions[i].getBundleId();			Bundle bundle = framework.getBundle(bundleId);			if (bundle != null && bundle != framework.systemBundle) {				if (descriptions[i].isResolved()){					if (bundle.isFragment()) {						BundleHost host = (BundleHost)framework.getBundle(descriptions[i].getHost().getSupplier().getBundleId());						if (((BundleFragment)bundle).setHost(host)) {							bundle.resolve();						}					}					else {						bundle.resolve();					}				}			}			else {				// TODO log error!!			}		}	}