public boolean isEmpty(){
synchronized (contexts) {
    return contexts.isEmpty();
  }
}

public boolean isEmpty ( ) { synchronized ( contexts ) { return contexts . isEmpty ( ) ; } }
check if the set is empty
