code: public final void addCallback(StatusCallback callback) {
          synchronized (callbacks) {
              if (callback != null && !callbacks.contains(callback)) {
                  callbacks.add(callback);
              }
          }
      }
docs: Adds a callback that will be called when the state of this Session changes.
  
  @param callback the callback