src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Returns the ConntactGroup with the specified name or null if no such
     * group was found.
     * <p>
     * @param name the name of the group we're looking for.
     * @return a reference to the ContactGroupJabberImpl instance we're looking for
     * or null if no such group was found.
     */
Returns the ConntactGroup with the specified name or null if no such
group was found.

@param name the name of the group we're looking for.
@return a reference to the ContactGroupJabberImpl instance we're looking for
or null if no such group was found.
Returns the ConntactGroup with the specified name or null if no such group was found . @param name the name of the group we ' re looking for . @return a reference to the ContactGroupJabberImpl instance we ' re looking for or null if no such group was found .
public ContactGroupJabberImpl findContactGroup(String name)
    {
        Iterator<ContactGroup> contactGroups = rootGroup.subgroups();
        name = name.trim();
        while(contactGroups.hasNext())
        {
            ContactGroupJabberImpl contactGroup
                = (ContactGroupJabberImpl) contactGroups.next();
            if (contactGroup.getGroupName().trim().equals(name))
                return contactGroup;
        }
        return null;
    }
public ContactGroupJabberImpl findContactGroup ( String name ) { Iterator < ContactGroup > contactGroups = rootGroup . subgroups ( ) ; name = name . trim ( ) ; while ( contactGroups . hasNext ( ) ) { ContactGroupJabberImpl contactGroup = ( ContactGroupJabberImpl ) contactGroups . next ( ) ; if ( contactGroup . getGroupName ( ) . trim ( ) . equals ( name ) ) return contactGroup ; } return null ; }
Returns the ConntactGroup with the specified name or null if no such
 group was found.
Returns the ConntactGroup with the specified name or null if no such group was found .
// make sure we ignore any whitespaces