public String fetchANMLocation() {
   String setting = settingsRepository.querySetting(ANM_LOCATION, "");
   return setting;
 }
 public void savePreviousFormSyncIndex(String value) {
   settingsRepository.updateSetting(PREVIOUS_FORM_SYNC_INDEX_SETTING_KEY, value);
 }
 public void saveANMLocation(String anmLocation) {
   settingsRepository.updateSetting(ANM_LOCATION, anmLocation);
 }
 public String fetchANMPassword() {
   return settingsRepository.querySetting(ANM_PASSWORD_PREFERENCE_KEY, "");
 }
 public String fetchPreviousFormSyncIndex() {
   return settingsRepository.querySetting(PREVIOUS_FORM_SYNC_INDEX_SETTING_KEY, "0");
 }
 public String appliedVillageFilter(String defaultFilterValue) {
   return settingsRepository.querySetting(APPLIED_VILLAGE_FILTER_SETTING_KEY, defaultFilterValue);
 }
 public void saveAppliedVillageFilter(String village) {
   settingsRepository.updateSetting(APPLIED_VILLAGE_FILTER_SETTING_KEY, village);
 }
 public String fetchPreviousFetchIndex() {
   return settingsRepository.querySetting(PREVIOUS_FETCH_INDEX_SETTING_KEY, "0");
 }
 public void savePreviousFetchIndex(String value) {
   settingsRepository.updateSetting(PREVIOUS_FETCH_INDEX_SETTING_KEY, value);
 }
 public void registerANMWithUserRole(String userName, String password, String userRole) {
   preferences.updateANMUserName(userName);
   preferences.updateUserRole(userRole);
   settingsRepository.updateSetting(ANM_PASSWORD_PREFERENCE_KEY, password);
 }