if (cachedState && lastTimeStamp == state.getTimeStamp())
if (cachedState && !saveNeeded())
	private void writeState(StateImpl state, File stateFile, File lazyFile) throws IOException {		if (state == null)			return;		if (cachedState && lastTimeStamp == state.getTimeStamp())			return;		state.fullyLoad(); // make sure we are fully loaded before saving		factory.writeState(state, stateFile, lazyFile);	}