writeStringOrNull((String) props.get(StateImpl.PROPS[i]), out);
writePlatformProp(props.get(StateImpl.PROPS[i]), out);
	private void writeState(StateImpl state, DataOutputStream out) throws IOException {		out.write(StateReader.STATE_CACHE_VERSION);		if (writePrefix(state, out))			return;		out.writeLong(state.getTimeStamp());		Dictionary props = state.getPlatformProperties();		out.writeInt(StateImpl.PROPS.length);		for (int i = 0; i < StateImpl.PROPS.length; i++)			writeStringOrNull((String) props.get(StateImpl.PROPS[i]), out);		BundleDescription[] bundles = state.getBundles();		StateHelperImpl.getInstance().sortBundles(bundles);		out.writeInt(bundles.length);		if (bundles.length == 0)			return;		for (int i = 0; i < bundles.length; i++)			writeBundleDescription(bundles[i], out);		out.writeBoolean(state.isResolved());		// save the lazy data offset		out.writeInt(out.size());		for (int i = 0; i < bundles.length; i++)			writeBundleDescriptionLazyData(bundles[i], out);	}