void processUpdateQueueForTesting(){
  while (!updates.isEmpty()) {
    IUpdate update=updates.poll();
    if (update != null)     update.dispatch();
  }
}

void processUpdateQueueForTesting ( ) { while ( ! updates . isEmpty ( ) ) { IUpdate update = updates . poll ( ) ; if ( update != null ) update . dispatch ( ) ; } }
for testing only . dispatch all updates in the update queue until queue is empty
