if (logger.isLoggable(Level.FINEST)) {
logger.log(Level.FINEST, "sessionId:{0} message:{1}",
HexDumper.toHexString(sessionId),
HexDumper.toHexString(message));
}
SessionProtocol sessionProtocol =
getSessionProtocol(new BigInteger(1, sessionId));
if (sessionProtocol != null) {
Delivery delivery = Delivery.values()[deliveryOrdinal];
try {
sessionProtocol.sessionMessage(
ByteBuffer.wrap(message), delivery);
} catch (IOException e) {
// TBD: should we disconnect the session because
// messages can't be delivered?
if (logger.isLoggable(Level.FINE)) {