public void putMergeVar(String key, Object value) {
    if (value != null) {
      if (value instanceof Date) {
        mergeVars.put(key, simpleDateFormat.format(value));
      } else {
        mergeVars.put(key, value);
      }
    }
  }