if (supportedProtocol.length > 0) {
session.getMessenger().setSupportedProtocol(supportedProtocol);
((BasicMessenger) session.getMessenger())
.setActualMsnProtocol(supportedProtocol[0]);
} else {
throw new UnsupportedProtocolException(
((OutgoingVER) getOutgoingMessage()).getSupportedProtocol());
}
}