title: Spring AMQP- Receiving Message Object Instead of Content
body: <p>I'm using Spring AMQP to send message from one microservice to other one and get response.</p>
  <p>I can send message and receive content with this code part:</p>
  <pre><code>public void sendAmqpCoreMessage(Message message) throws JsonProcessingException {
      List&lt;MyCustomType&gt; response = rabbitTemplate.convertSendAndReceiveAsType(&quot;jms.durable.queues&quot;, this.queue.getName(), message, new ParameterizedTypeReference&lt;List&lt;MyCustomType&gt;&gt;() {
      });
      logger.info(&quot;Response: {}&quot;, new ObjectMapper().writeValueAsString(response));
  }
  </code></pre>
  <p>But instead of getting only message content, I need the whole Message object because I'm using some headers which stay in messageProperties of response which's type is Message.</p>
  <p>How can I get Message object as response?</p>