src/net/java/sip/communicator/impl/protocol/jabber/MobileIndicator.java
/**
     * The method is called by a ProtocolProvider implementation whenever
     * a change in the registration state of the corresponding provider had
     * occurred.
     * @param evt ProviderStatusChangeEvent the event describing the status
     * change.
     */
The method is called by a ProtocolProvider implementation whenever
a change in the registration state of the corresponding provider had
occurred.
@param evt ProviderStatusChangeEvent the event describing the status
change.
The method is called by a ProtocolProvider implementation whenever a change in the registration state of the corresponding provider had occurred . @param evt ProviderStatusChangeEvent the event describing the status change .
@Override
    public void registrationStateChanged(RegistrationStateChangeEvent evt)
    {
        if(evt.getNewState() == RegistrationState.REGISTERED)
        {
            this.parentProvider.getDiscoveryManager()
                .addUserCapsNodeListener(this);
        }
        else if((evt.getNewState() == RegistrationState.CONNECTION_FAILED
                    || evt.getNewState()
                            == RegistrationState.AUTHENTICATION_FAILED
                    || evt.getNewState() == RegistrationState.UNREGISTERED)
                && this.parentProvider.getDiscoveryManager() != null)
        {
            this.parentProvider.getDiscoveryManager()
                .removeUserCapsNodeListener(this);
        }
    }
@ Override public void registrationStateChanged ( RegistrationStateChangeEvent evt ) { if ( evt . getNewState ( ) == RegistrationState . REGISTERED ) { this . parentProvider . getDiscoveryManager ( ) . addUserCapsNodeListener ( this ) ; } else if ( ( evt . getNewState ( ) == RegistrationState . CONNECTION_FAILED || evt . getNewState ( ) == RegistrationState . AUTHENTICATION_FAILED || evt . getNewState ( ) == RegistrationState . UNREGISTERED ) && this . parentProvider . getDiscoveryManager ( ) != null ) { this . parentProvider . getDiscoveryManager ( ) . removeUserCapsNodeListener ( this ) ; } }
The method is called by a ProtocolProvider implementation whenever
 a change in the registration state of the corresponding provider had
 occurred.
The method is called by a ProtocolProvider implementation whenever a change in the registration state of the corresponding provider had occurred .