code: private String replaceProperties(String message, Map<String, String> map) {
          if (map != null) {
              for (Entry<String, String> entr : map.entrySet()) {
                  message = StringUtils.replace(message, "@{" + entr.getKey() + "}", entr.getValue());
              }
          }
          return message;
      }
docs: Replaces properties in message.
  
  @param message
  @param map
  Key is a string to replace wrapped in <code>@{...}</code>. Value
  is a string to replace with.
  @return