code: public static boolean isServiceEnabled(XMPPConnection connection, Jid userID) throws XMPPException, SmackException, InterruptedException {
              return ServiceDiscoveryManager.getInstanceFor(connection).supportsFeature(userID, Jingle.NAMESPACE);
      }
docs: Returns true if the specified user handles Jingle messages.
  
  @param connection the connection to use to perform the service discovery
  @param userID     the user to check. A fully qualified xmpp ID, e.g.
  jdoe@example.com
  @return a boolean indicating whether the specified user handles Jingle
  messages
  @throws SmackException if there was no response from the server.
  @throws XMPPException
  @throws InterruptedException