src/net/java/sip/communicator/impl/protocol/jabber/TransportManagerJabberImpl.java
/**
     * Looks through the <tt>cpExtList</tt> and returns the {@link
     * ContentPacketExtension} with the specified name.
     *
     * @param cpExtList the list that we will be searching for a specific
     * content.
     * @param name the name of the content element we are looking for.
     * @return the {@link ContentPacketExtension} with the specified name or
     * <tt>null</tt> if no such content element exists.
     */
Looks through the cpExtList and returns the {@link
ContentPacketExtension} with the specified name.

@param cpExtList the list that we will be searching for a specific
content.
@param name the name of the content element we are looking for.
@return the  ContentPacketExtension with the specified name or
null if no such content element exists.
Looks through the cpExtList and returns the { @link ContentPacketExtension } with the specified name . @param cpExtList the list that we will be searching for a specific content . @param name the name of the content element we are looking for . @return the ContentPacketExtension with the specified name or null if no such content element exists .
public static ContentPacketExtension findContentByName(
            Iterable<ContentPacketExtension> cpExtList,
            String name)
    {
        for(ContentPacketExtension cpExt : cpExtList)
        {
            if(cpExt.getName().equals(name))
                return cpExt;
        }
        return null;
    }
public static ContentPacketExtension findContentByName ( Iterable < ContentPacketExtension > cpExtList , String name ) { for ( ContentPacketExtension cpExt : cpExtList ) { if ( cpExt . getName ( ) . equals ( name ) ) return cpExt ; } return null ; }
Looks through the <tt>cpExtList</tt> and returns the {@link
 ContentPacketExtension} with the specified name.
Looks through the <tt > cpExtList< / tt > and returns the { @link ContentPacketExtension } with the specified name .