void waitForDictionaryLoading(){
  while (mUpdatingDictionary) {
    try {
      Thread.sleep(100);
    }
 catch (    InterruptedException e) {
    }
  }
}

void waitForDictionaryLoading ( ) { while ( mUpdatingDictionary ) { try { Thread . sleep ( 100 ) ; } catch ( InterruptedException e ) { } } }
used only for testing purposes this function will wait for loading from database to be done
