src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Make the parent persistent presence operation set dispatch a contact
     * added event.
     * @param parentGroup the group where the new contact was added
     * @param contact the contact that was added
     */
Make the parent persistent presence operation set dispatch a contact
added event.
@param parentGroup the group where the new contact was added
@param contact the contact that was added
Make the parent persistent presence operation set dispatch a contact added event . @param parentGroup the group where the new contact was added @param contact the contact that was added
void fireContactAdded( ContactGroup parentGroup,
                           ContactJabberImpl contact)
    {
        if(parentOperationSet == null){
            if (logger.isDebugEnabled())
                logger.debug("No presence op. set available. Bailing out.");
            return;
        }
        if(roster != null)
        {
            parentOperationSet.firePresenceStatusChanged(
                    roster.getPresence(contact.getAddressAsJid().asBareJid()));
        }
        parentOperationSet.fireSubscriptionEvent(contact, parentGroup,
            SubscriptionEvent.SUBSCRIPTION_CREATED);
    }
void fireContactAdded ( ContactGroup parentGroup , ContactJabberImpl contact ) { if ( parentOperationSet == null ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "No presence op. set available. Bailing out." ) ; return ; } if ( roster != null ) { parentOperationSet . firePresenceStatusChanged ( roster . getPresence ( contact . getAddressAsJid ( ) . asBareJid ( ) ) ) ; } parentOperationSet . fireSubscriptionEvent ( contact , parentGroup , SubscriptionEvent . SUBSCRIPTION_CREATED ) ; }
Make the parent persistent presence operation set dispatch a contact
 added event.
Make the parent persistent presence operation set dispatch a contact added event .
//bail out if no one's listening // if we are already registered(roster != null) and we are currently // creating the contact list, presences maybe already received // before we have created the contacts, so lets check // dispatch