docs: public synchronized void enableAutomaticReconnection() {
          if (automaticReconnectEnabled) {
              return;
          }
          XMPPConnection connection = weakRefConnection.get();
          if (connection == null) {
              throw new IllegalStateException("Connection instance no longer available");
          }
          connection.addConnectionListener(connectionListener);
          automaticReconnectEnabled = true;
      }