src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Creates a non resolved contact for the specified address and inside the
     * specified group. The newly created contact would be added to the local
     * contact list as a standard contact but when an event is received from the
     * server concerning this contact, then it will be reused and only its
     * isResolved field would be updated instead of creating the whole contact
     * again.
     *
     * @param parentGroup the group where the unersolved contact is to be
     * created
     * @param id the Address of the contact to create.
     * @return the newly created unresolved <tt>ContactImpl</tt>
     */
Creates a non resolved contact for the specified address and inside the
specified group. The newly created contact would be added to the local
contact list as a standard contact but when an event is received from the
server concerning this contact, then it will be reused and only its
isResolved field would be updated instead of creating the whole contact
again.

@param parentGroup the group where the unersolved contact is to be
created
@param id the Address of the contact to create.
@return the newly created unresolved ContactImpl
Creates a non resolved contact for the specified address and inside the specified group . The newly created contact would be added to the local contact list as a standard contact but when an event is received from the server concerning this contact then it will be reused and only its isResolved field would be updated instead of creating the whole contact again . @param parentGroup the group where the unersolved contact is to be created @param id the Address of the contact to create . @return the newly created unresolved ContactImpl
synchronized ContactJabberImpl createUnresolvedContact(
        ContactGroup parentGroup, Jid id)
    {
        ContactJabberImpl existingContact = findContactById(id);
        if( existingContact != null)
        {
            return existingContact;
        }
        ContactJabberImpl newUnresolvedContact
            = new ContactJabberImpl(id, this, true);
        if(parentGroup instanceof ContactGroupJabberImpl)
            ((ContactGroupJabberImpl)parentGroup).
                addContact(newUnresolvedContact);
        else if(parentGroup instanceof RootContactGroupJabberImpl)
            ((RootContactGroupJabberImpl)parentGroup).
                addContact(newUnresolvedContact);
        fireContactAdded(parentGroup, newUnresolvedContact);
        return newUnresolvedContact;
    }
synchronized ContactJabberImpl createUnresolvedContact ( ContactGroup parentGroup , Jid id ) { ContactJabberImpl existingContact = findContactById ( id ) ; if ( existingContact != null ) { return existingContact ; } ContactJabberImpl newUnresolvedContact = new ContactJabberImpl ( id , this , true ) ; if ( parentGroup instanceof ContactGroupJabberImpl ) ( ( ContactGroupJabberImpl ) parentGroup ) . addContact ( newUnresolvedContact ) ; else if ( parentGroup instanceof RootContactGroupJabberImpl ) ( ( RootContactGroupJabberImpl ) parentGroup ) . addContact ( newUnresolvedContact ) ; fireContactAdded ( parentGroup , newUnresolvedContact ) ; return newUnresolvedContact ; }
Creates a non resolved contact for the specified address and inside the
 specified group.
Creates a non resolved contact for the specified address and inside the specified group .