code: public String getMessage(String code, Map<String, String> substitutes) {
          return getMessage(code, substitutes, true, null);
      }
docs: Finds localized message template by code and current locale from config. If not found it
  takes message from message bundle and replaces all the occurrences of variables with their
  matching values from the substitute map.
  @param code the message code
  @param substitutes the substitute map for message template
  @return localized message