StateImpl restoredState = reader.loadState(stream, expectedTimeStamp); restoredState.setFactory(this); return restoredState;
StateImpl restoredState = (StateImpl) createState(); if (!reader.loadState(restoredState, stream)) return null; return restoredState;
	public State readState(DataInputStream stream, long expectedTimeStamp) throws IOException {		StateReader reader = new StateReader();		StateImpl restoredState = reader.loadState(stream, expectedTimeStamp);		restoredState.setFactory(this);		return restoredState;	}	