public void ReturnedMessage(IMessage <byte[]> message, int replyCode, string replyText, string exchange, string routingKey) { // no need for null check; we asserted we have a RabbitTemplate in doInit() var converter = Template.MessageConverter; var returned = BuildReturnedMessage(message, replyCode, replyText, exchange, routingKey, converter); ReturnChannel.Send(returned); }