protected synchronized void clearContents() {
    if (myContents == null) {
      myContents = new HashMap<>(1);
    }
    else {
      myContents.clear();
    }
  }
protected synchronized void clearContents()