/** * Create a text message with the specified {@link MessageProperties}. The * content type is set no matter */ public static Message createTextMessage(String body, MessageProperties properties) { properties.setContentType(MessageProperties.CONTENT_TYPE_TEXT_PLAIN); return new org.springframework.amqp.core.Message(toBytes(body), properties); }