if (evt.getNewState() == RegistrationState.REGISTERED)
{
opSetPersPresence =
(OperationSetPersistentPresenceMsnImpl) msnProvider
.getOperationSet(OperationSetPersistentPresence.class);
<BUG>msnProvider.getMessenger().
addMessageListener(new MsnMessageListener());

msnProvider.getMessenger().
addEmailListener(new MsnMessageListener());
</BUG>
}

if (evt.getNewState() == RegistrationState.REGISTERED)
{
opSetPersPresence =
(OperationSetPersistentPresenceMsnImpl) msnProvider
.getOperationSet(OperationSetPersistentPresence.class);
MsnMessenger msnMessenger = msnProvider.getMessenger();
msnMessenger.addMessageListener(new MsnMessageListener());
msnMessenger.addEmailListener(new MsnMessageListener());
