code: public List<DomainBareJid> getSearchServices() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException  {
          ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(con);
          return discoManager.findServices(UserSearch.NAMESPACE, false, false);
      }
docs: Returns a collection of search services found on the server.
  
  @return a Collection of search services found on the server.
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException