src/net/java/sip/communicator/impl/protocol/jabber/CallPeerMediaHandlerJabberImpl.java
/**
     * Determines whether a specific XMPP feature is supported by both a
     * specific <tt>ScServiceDiscoveryManager</tt> (may be referred to as the
     * local peer) and a specific <tt>DiscoverInfo</tt> (may be thought of as
     * the remote peer).
     *
     * @param discoveryManager the <tt>ScServiceDiscoveryManager</tt> to be
     * checked whether it includes the specified feature
     * @param discoverInfo the <tt>DiscoveryInfo</tt> which is to be checked
     * whether it contains the specified feature. If <tt>discoverInfo</tt> is
     * <tt>null</tt>, it is considered to contain the specified feature.
     * @param feature the feature to be determined whether it is supported by
     * both the specified <tt>discoveryManager</tt> and the specified
     * <tt>discoverInfo</tt>
     * @return <tt>true</tt> if the specified <tt>feature</tt> is supported by
     * both the specified <tt>discoveryManager</tt> and the specified
     * <tt>discoverInfo</tt>; otherwise, <tt>false</tt>
     */
Determines whether a specific XMPP feature is supported by both a
specific ScServiceDiscoveryManager (may be referred to as the
local peer) and a specific DiscoverInfo (may be thought of as
the remote peer).

@param discoveryManager the ScServiceDiscoveryManager to be
checked whether it includes the specified feature
@param discoverInfo the DiscoveryInfo which is to be checked
whether it contains the specified feature. If discoverInfo is
null, it is considered to contain the specified feature.
@param feature the feature to be determined whether it is supported by
both the specified discoveryManager and the specified
discoverInfo
@return true if the specified feature is supported by
both the specified discoveryManager and the specified
discoverInfo; otherwise, false
Determines whether a specific XMPP feature is supported by both a specific ScServiceDiscoveryManager ( may be referred to as the local peer ) and a specific DiscoverInfo ( may be thought of as the remote peer ) . @param discoveryManager the ScServiceDiscoveryManager to be checked whether it includes the specified feature @param discoverInfo the DiscoveryInfo which is to be checked whether it contains the specified feature . If discoverInfo is null it is considered to contain the specified feature . @param feature the feature to be determined whether it is supported by both the specified discoveryManager and the specified discoverInfo @return true if the specified feature is supported by both the specified discoveryManager and the specified discoverInfo ; otherwise false
private static boolean isFeatureSupported(
            ScServiceDiscoveryManager discoveryManager,
            DiscoverInfo discoverInfo,
            String feature)
    {
        return
            discoveryManager.includesFeature(feature)
                && ((discoverInfo == null)
                    || discoverInfo.containsFeature(feature));
    }
private static boolean isFeatureSupported ( ScServiceDiscoveryManager discoveryManager , DiscoverInfo discoverInfo , String feature ) { return discoveryManager . includesFeature ( feature ) && ( ( discoverInfo == null ) || discoverInfo . containsFeature ( feature ) ) ; }
Determines whether a specific XMPP feature is supported by both a
 specific <tt>ScServiceDiscoveryManager</tt> (may be referred to as the
 local peer) and a specific <tt>DiscoverInfo</tt> (may be thought of as
 the remote peer).
Determines whether a specific XMPP feature is supported by both a specific <tt > ScServiceDiscoveryManager< / tt > ( may be referred to as the local peer ) and a specific <tt > DiscoverInfo< / tt > ( may be thought of as the remote peer ) .