* @return The capabilities in form of a info node, which contains the identities, the features and service discovery extensions.
* @throws rocks.xmpp.core.stanza.model.StanzaException If the entity returned a stanza error.
* @throws rocks.xmpp.core.session.NoResponseException If the entity did not respond.
*/
public InfoNode getCapabilities(Jid jid) throws XmppException {
InfoNode infoNode = jidInfos.get(jid);
if (infoNode == null) {
synchronized (jidInfos) {
infoNode = serviceDiscoveryManager.discoverInformation(jid);
jidInfos.put(jid, infoNode);
}