code: public String message(String key, Object... params) {
          if (key == null) {
              return null;
          }
          try {
              String string = (getResourceBundle().containsKey(key)) ? getResourceBundle().getString(key) : key;
              if (params != null) {
                  for (int i = 0; i < params.length; i++) {
                      String param = (params[i] == null) ? "" : params[i].toString();
                      string = string.replaceAll("\\{" + i + "\\}", param);
                  }
              }
              return string;
          } catch (Exception e) {
              return key;
          }
      }
docs: Returns the internacionalized string for the given key