code: public DiscoverInfo getSupportedFeatures() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          ServiceDiscoveryManager mgr = ServiceDiscoveryManager.getInstanceFor(connection());
          return mgr.discoverInfo(pubSubService);
      }
docs: Gets the supported features of the servers pubsub implementation
  as a standard {@link DiscoverInfo} instance.
  
  @return The supported features
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException