code: public static MessageBean getMessage(final String id, final String... params) {
          if (!msgs.containsKey(id)) {
              throw new IllegalArgumentException("Message for ID '" + id + "' not found");
          }
          final String msg = MessageFormat.format(msgs.getString(id), (Object[]) params);
          MessageBean.Type type = null;
          switch (id.substring(id.length() - 1)) {
              case "F":
                  type = MessageBean.Type.FATAL;
                  break;
              case "E":
                  type = MessageBean.Type.ERROR;
                  break;
              case "W":
                  type = MessageBean.Type.WARN;
                  break;
              case "I":
                  type = MessageBean.Type.INFO;
                  break;
              case "D":
                  type = MessageBean.Type.DEBUG;
                  break;
          }
          return new MessageBean(id, type, msg, null);
      }
docs: Get the message respond to the given id with all of the parameters
  are replaced by those in the given 'prop', if no message found,
  an empty message with this id will be returned.
  
  @param id id
  @param params message parameters
  @return MessageBean