out.write(STATE_CACHE_VERSION);
out.write(StateReader.STATE_CACHE_VERSION);
	private void writeState(StateImpl state, DataOutputStream out) throws IOException {		out.write(STATE_CACHE_VERSION);		if (writePrefix(state, out))			return;		BundleDescription[] bundles = state.getBundles();				out.writeInt(bundles.length);		if (bundles.length == 0)			return;		for (int i = 0; i < bundles.length; i++)			writeBundleDescription((BundleDescriptionImpl) bundles[i], out);		out.writeLong(state.getTimeStamp());		out.writeBoolean(state.isResolved());		if (!state.isResolved())			return;		BundleDescription[] resolvedBundles = state.getResolvedBundles();		out.writeInt(resolvedBundles.length);			for (int i = 0; i < resolvedBundles.length; i++)			writeBundleDescription((BundleDescriptionImpl) resolvedBundles[i], out);			}