code: public boolean areEntityCapsSupported(Jid jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          return sdm.supportsFeature(jid, NAMESPACE);
      }
docs: Returns true if Entity Caps are supported by a given JID.
  
  @param jid
  @return true if the entity supports Entity Capabilities.
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException