code: public void addBOSHClientConnListener(
              final BOSHClientConnListener listener) {
          if (listener == null) {
              throw(new IllegalArgumentException(NULL_LISTENER));
          }
          connListeners.add(listener);
      }
docs: Adds a connection listener to the session.
  
  @param listener connection listener to add, if not already added