class MessageProperties {

  static void setStringProperty(Message message, String name, String value) {
    try {
      message.setStringProperty(name, value);
    } catch (Throwable t) {
      propagateIfFatal(t);
      log(t, "error setting property {0} on message {1}", name, message);
    }
  }

}