code: public DiscoverInfo discoverInfo(Jid entityID, String node) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          // Discover the entity's info
          DiscoverInfo disco = new DiscoverInfo();
          disco.setType(IQ.Type.get);
          disco.setTo(entityID);
          disco.setNode(node);
  
          Stanza result = connection().createStanzaCollectorAndSend(disco).nextResultOrThrow();
  
          return (DiscoverInfo) result;
      }
docs: Returns the discovered information of a given XMPP entity addressed by its JID and
  note attribute. Use this message only when trying to query information which is not
  directly addressable.
  
  @see <a href="http://xmpp.org/extensions/xep-0030.html#info-basic">XEP-30 Basic Protocol</a>
  @see <a href="http://xmpp.org/extensions/xep-0030.html#info-nodes">XEP-30 Info Nodes</a>
  
  @param entityID the address of the XMPP entity.
  @param node the optional attribute that supplements the 'jid' attribute.
  @return the discovered information.
  @throws XMPPErrorException if the operation failed for some reason.
  @throws NoResponseException if there was no response from the server.
  @throws NotConnectedException
  @throws InterruptedException