I am using spring amqp rabbitmq, and sending messages using
Message message = MessageBuilder
.withBody(item.toString().getBytes())
.setReplyTo(\"importReply
Since you are using POJO for message listening you can't get deal with messages.
Your Foundation#importExchange should accept message body (in your case byte[])
and return something appropriate to be for reply message body.
The replyHandler just has to implement MessageListener.
The Framework will do for you the correlation stuff.