src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java
/**
     * Returns <tt>true</tt> if <tt>jid</tt> supports the specified
     * <tt>feature</tt> and <tt>false</tt> otherwise. The method may check the
     * information locally if we've already cached this <tt>jid</tt>'s disco
     * info, or retrieve it from the network.
     *
     * @param jid the jabber ID we'd like to test for support
     * @param feature the URN feature we are interested in
     *
     * @return true if <tt>jid</tt> is discovered to support <tt>feature</tt>
     * and <tt>false</tt> otherwise.
     */
Returns true if jid supports the specified
feature and false otherwise. The method may check the
information locally if we've already cached this jid's disco
info, or retrieve it from the network.

@param jid the jabber ID we'd like to test for support
@param feature the URN feature we are interested in

@return true if jid is discovered to support feature
and false otherwise.
Returns true if jid supports the specified feature and false otherwise . The method may check the information locally if we ' ve already cached this jid ' s disco info or retrieve it from the network . @param jid the jabber ID we ' d like to test for support @param feature the URN feature we are interested in @return true if jid is discovered to support feature and false otherwise .
public boolean supportsFeature(Jid jid, String feature)
    {
        DiscoverInfo info;
        try
        {
            info = this.discoverInfo(jid);
        }
        catch(XMPPException
                | InterruptedException
                | NoResponseException
                | NotConnectedException ex)
        {
            logger.info("failed to retrieve disco info for " + jid
                                + " feature " + feature, ex);
            return false;
        }
        return info != null && info.containsFeature(feature);
    }
public boolean supportsFeature ( Jid jid , String feature ) { DiscoverInfo info ; try { info = this . discoverInfo ( jid ) ; } catch ( XMPPException | InterruptedException | NoResponseException | NotConnectedException ex ) { logger . info ( "failed to retrieve disco info for " + jid + " feature " + feature , ex ) ; return false ; } return info != null && info . containsFeature ( feature ) ; }
Returns <tt>true</tt> if <tt>jid</tt> supports the specified
 <tt>feature</tt> and <tt>false</tt> otherwise.
Returns <tt > true< / tt > if <tt > jid< / tt > supports the specified <tt > feature< / tt > and <tt > false< / tt > otherwise .