dirty = false;
	private synchronized static void saveData() {		if (!dirty || storageManager.isReadOnly())			return;		try {			File locksData = storageManager.createTempFile(FILE_APPLOCKS);			saveLocks(locksData);			File schedulesData = storageManager.createTempFile(FILE_APPSCHEDULED);			saveSchedules(schedulesData);			storageManager.lookup(FILE_APPLOCKS, true);			storageManager.lookup(FILE_APPSCHEDULED, true);			storageManager.update(new String[] {FILE_APPLOCKS, FILE_APPSCHEDULED}, new String[] {locksData.getName(), schedulesData.getName()});		} catch (IOException e) {			// TODO should log this!!		}		dirty = false;	}