@Override
public void sessionClosed(Session session) {
MsnMessageChain chain = ((MsnSession) session.getAttachment())
.getIncomingMessageChain();
MsnMessageIterator iterator = chain.iterator();
if (iterator.hasPrevious()) {
MsnMessage message = iterator.previous();
//The last message is redirect message
if (message instanceof IncomingXFR
&& !((IncomingXFR) message)
.isTransferredToSwitchboard())
return;