if (systemBundle == null || !systemBundle.isResolved())
if (systemBundle == null || !systemBundle.isResolved()) { ResolverError[] errors = systemBundle == null ? new ResolverError[0] : state.getResolverErrors(systemBundle); StringBuffer sb = new StringBuffer(); for (int i = 0; i < errors.length; i++) { sb.append(errors[i].toString()); if (i < errors.length - 1) sb.append(", "); }
	private void checkSystemState(State state) {		BundleDescription[] bundles = state.getBundles();		if (bundles == null)			return;		boolean removedBundle = false;		for (int i = 0; i < bundles.length; i++) {			if (context.getBundle(bundles[i].getBundleId()) == null) {				state.removeBundle(bundles[i]);				removedBundle = true;			}		}		if (removedBundle)			state.resolve(false); // do a full resolve		BundleDescription systemBundle = state.getBundle(0);		if (systemBundle == null || !systemBundle.isResolved())			// this would be a bug in the framework			throw new IllegalStateException();	}