if (!stateFile.exists() || !lazyFile.exists()) { StorageManager storageManager = new StorageManager(stateDirectory, "none", true); try {  storageManager.open(true);  File managedState = storageManager.lookup(StateReader.STATE_FILE, false); File managedLazy = storageManager.lookup(StateReader.LAZY_FILE, false); if (managedState != null && managedLazy != null) { stateFile = managedState; lazyFile = managedLazy; } } finally { storageManager.close(); } }
	private State internalReadState(StateImpl toRestore, File stateDirectory, long expectedTimestamp) throws IOException {		File stateFile = new File(stateDirectory, StateReader.STATE_FILE);		File lazyFile = new File(stateDirectory, StateReader.LAZY_FILE);		StateReader reader = new StateReader(stateFile, lazyFile, false);		if (!reader.loadState(toRestore, expectedTimestamp))			return null;		return toRestore;	}