public EntityCapabilities getEntityCapabilities(JID jid) {
        String verAttribute = entityCapabilitiesUserMap.get(jid);
        if ( verAttribute == null ) {
            return null;
        }
        return entityCapabilitiesMap.get(verAttribute);
    }
Returns the entity capabilities for a specific JID. The specified JID
should be a full JID that identified the entity's connection.

@param jid the full JID of entity
@return the entity capabilities of jid, or null if these are unavailable.
xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java