class MessageHeaders {

  static void setHeader(Message message, String name, String value) {
    MessageProperties properties = message.getMessageProperties();
    if (properties == null) return;
    properties.setHeader(name, value);
  }

}