src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java
/**
     * Returns the discovered information of a given XMPP entity addressed by
     * its JID if locally cached, otherwise schedules for retrieval.
     *
     * @param entityID the address of the XMPP entity.
     * @return the discovered information.
     */
Returns the discovered information of a given XMPP entity addressed by
its JID if locally cached, otherwise schedules for retrieval.

@param entityID the address of the XMPP entity.
@return the discovered information.
Returns the discovered information of a given XMPP entity addressed by its JID if locally cached otherwise schedules for retrieval . @param entityID the address of the XMPP entity . @return the discovered information .
public DiscoverInfo discoverInfoNonBlocking(Jid entityID)
    {
        DiscoverInfo discoverInfo = capsManager.getDiscoverInfoByUser(entityID);
        EntityCapsManager.NodeVerHash caps
            = EntityCapsManager.getNodeVerHashByJid(entityID);
        boolean isInfoValid = false;
        if (discoverInfo != null && caps != null)
        {
            isInfoValid = EntityCapsManager.verifyDiscoverInfoVersion(
                caps.getVer(), caps.getHash(), discoverInfo);
        }
        if (discoverInfo != null && isInfoValid)
            return discoverInfo;
        if (cacheNonCaps)
        {
            discoverInfo = nonCapsCache.get(entityID);
            if (discoverInfo != null)
                return discoverInfo;
        }
        retriever.addEntityForRetrieve(
            entityID,
            caps);
        return null;
    }
public DiscoverInfo discoverInfoNonBlocking ( Jid entityID ) { DiscoverInfo discoverInfo = capsManager . getDiscoverInfoByUser ( entityID ) ; EntityCapsManager . NodeVerHash caps = EntityCapsManager . getNodeVerHashByJid ( entityID ) ; boolean isInfoValid = false ; if ( discoverInfo != null && caps != null ) { isInfoValid = EntityCapsManager . verifyDiscoverInfoVersion ( caps . getVer ( ) , caps . getHash ( ) , discoverInfo ) ; } if ( discoverInfo != null && isInfoValid ) return discoverInfo ; if ( cacheNonCaps ) { discoverInfo = nonCapsCache . get ( entityID ) ; if ( discoverInfo != null ) return discoverInfo ; } retriever . addEntityForRetrieve ( entityID , caps ) ; return null ; }
Returns the discovered information of a given XMPP entity addressed by
 its JID if locally cached, otherwise schedules for retrieval.
Returns the discovered information of a given XMPP entity addressed by its JID if locally cached otherwise schedules for retrieval .
// if caps is not valid, has empty hash // add to retrieve thread