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