if (log.isDebugEnabled()) {
log.debug("Sending notification: " + notification);
} else if (log.isInfoEnabled()) {
log.info("Sending " + notification.name() + " notification.");
}
Message message = new Message(null, null, baos.buffer(), 0, baos.size());
_channel.send(message);
}
}