Not able to process response received from template.convertSendAndReceive()
<p>I am trying to send message and receive response using following code </p>

<pre><code>MessageProperties props    =MessagePropertiesBuilder.newInstance().setContentType(MessageProperties.CONTENT_TYPE_TEXT_PLAIN)
            .setMessageId("MSG12345").setHeader("type", "type1").setCorrelationId(UUID.randomUUID().toString().getBytes()).build();
 Message message = MessageBuilder.withBody(input.getBytes()).andProperties(props).build();
 Message response = (Message) template.convertSendAndReceive("key", message);
</code></pre>

<p>But, its is throwing ava.lang.ClassCastException: java.lang.String cannot be cast to org.springframework.amqp.core.Message</p>

<p>May be because, I am sending request using java (spring-amqp) program and the receiver is a python (pika) program. 
Recevier is sending me a JSON object dumped in string format but I am not able to handle it.</p>