docs: public static PubSubManager getInstanceFor(XMPPConnection connection) {
      // CHECKSTYLE:ON:RegexpSingleline
          DomainBareJid pubSubService = null;
          if (connection.isAuthenticated()) {
              try {
                  pubSubService = getPubSubService(connection);
              }
              catch (NoResponseException | XMPPErrorException | NotConnectedException e) {
                  LOGGER.log(Level.WARNING, "Could not determine PubSub service", e);
              }
              catch (InterruptedException e) {
                  LOGGER.log(Level.FINE, "Interrupted while trying to determine PubSub service", e);
              }
          }
          if (pubSubService == null) {
              try {
                  // Perform an educated guess about what the PubSub service's domain bare JID may be
                  pubSubService = JidCreate.domainBareFrom("pubsub." + connection.getXMPPServiceDomain());
              }
              catch (XmppStringprepException e) {
                  throw new RuntimeException(e);
              }
          }
          return getInstanceFor(connection, pubSubService);
      }