code: public void addListener(InvalidationListener listener) {
          synchronized (hsInvalidationListeners) {
              hsInvalidationListeners.add(listener);
              invalidationListenerCount = hsInvalidationListeners.size();
              bUpdateInvalidationListener = true;
          }
      }
docs: This adds a new listener to the Invalidation listener.
  @param listener The listener to be added.