src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Returns the ContactGroup containing the specified contact or null
     * if no such group or contact exist.
     *
     * @param child the contact whose parent group we're looking for.
     * @return the <tt>ContactGroup</tt> containing the specified
     * <tt>contact</tt> or <tt>null</tt> if no such groupo or contact
     * exist.
     */
Returns the ContactGroup containing the specified contact or null
if no such group or contact exist.

@param child the contact whose parent group we're looking for.
@return the ContactGroup containing the specified
contact or null if no such groupo or contact
exist.
Returns the ContactGroup containing the specified contact or null if no such group or contact exist . @param child the contact whose parent group we ' re looking for . @return the ContactGroup containing the specified contact or null if no such groupo or contact exist .
public ContactGroup findContactGroup(ContactJabberImpl child)
    {
        Iterator<ContactGroup> contactGroups = rootGroup.subgroups();
        Jid contactAddress = child.getAddressAsJid();
        while(contactGroups.hasNext())
        {
            ContactGroupJabberImpl contactGroup
                = (ContactGroupJabberImpl)contactGroups.next();
            if( contactGroup.findContact(contactAddress)!= null)
                return contactGroup;
        }
        if ( rootGroup.findContact(contactAddress) != null)
            return rootGroup;
        return null;
    }
public ContactGroup findContactGroup ( ContactJabberImpl child ) { Iterator < ContactGroup > contactGroups = rootGroup . subgroups ( ) ; Jid contactAddress = child . getAddressAsJid ( ) ; while ( contactGroups . hasNext ( ) ) { ContactGroupJabberImpl contactGroup = ( ContactGroupJabberImpl ) contactGroups . next ( ) ; if ( contactGroup . findContact ( contactAddress ) != null ) return contactGroup ; } if ( rootGroup . findContact ( contactAddress ) != null ) return rootGroup ; return null ; }
Returns the ContactGroup containing the specified contact or null
 if no such group or contact exist.
Returns the ContactGroup containing the specified contact or null if no such group or contact exist .