/*
(non-Javadoc)

@see com.sporniket.libre.lang.MessageProviderTrait#getMessage(java.lang.String, java.lang.Object[])
769083
public String getMessage(String key, Object[] parameters)
	{
		return getMessage(key, Locale.getDefault(), parameters);
	}
617024
protected String getMessage(String contextId, String fieldPath, String[] faceDescriptorProperties,
            String defaultValue) {
        String[] keys = getMessageKeys(contextId, fieldPath, faceDescriptorProperties);
        try {
            return getMessageSourceAccessor().getMessage(new DefaultMessageSourceResolvable(keys, null, defaultValue));
        } catch (NoSuchMessageException e) {
            if (log.isDebugEnabled()) {
                log.debug(e.getMessage());
            }
            return null;
        }
    }
683872
public String getMessage() {
    StringBuffer result = new StringBuffer();
    Iterator<IOException> itr = problems.iterator();
    while(itr.hasNext()) {
      result.append(itr.next().getMessage());
      if (itr.hasNext()) {
        result.append("\n");
      }
    }
    return result.toString();
  }
437733
@Override
    public String getFormattedMessage() {
        // LOG4J2-763: cache formatted string in case obj changes later
        if (objectString == null) {
            objectString = String.valueOf(obj);
        }
        return objectString;
    }
595279
public String getMessage() {
        Throwable rock = getUndeclaredThrowable();
        if (rock != null) {
            return rock.getMessage();
        }
        else {
            return super.getMessage();
        }
    }
93741
@Override public String getMessage() {
    String gaiName = OsConstants.gaiName(error);
    if (gaiName == null) {
      gaiName = "GAI_ error " + error;
    }
    String description = NetworkOs.gai_strerror(error);
    return functionName + " failed: " + gaiName + " (" + description + ")";
  }
462821
protected String getMessage(Message message) {
    switch(message) {
      case CHECK:
        return "This conversion doesn't seem right. Do you want to correct it automatically?";
      case SUGGESTION:
        return "Writing for an international audience? Consider adding the metric equivalent.";
      case CHECK_UNKNOWN_UNIT:
        return "This conversion doesn't seem right, unable to recognize the used unit.";
      case UNIT_MISMATCH:
        return "These units don't seem to be compatible.";
      default:
        throw new RuntimeException("Unknown message type: " + message);
    }
  }
506728
public static String getMessageText(I_CmsMessageBundle messages, String key, Object... args) {

        return messages.getBundle(A_CmsUI.get().getLocale()).key(key, args);
    }
768303
@Override public String getMessage() {
    String errnoName = OsConstants.errnoName(errno);
    if (errnoName == null) {
      errnoName = "errno " + errno;
    }
    String description = Libcore.os.strerror(errno);
    return functionName + " failed: " + errnoName + " (" + description + ")";
  }
494324
public BaseMessage getMessageObject()
    {
        if (m_message == null)
        {
            Map<String,Object> properties = new Hashtable<String,Object>();
            m_message = new MapMessage(new BaseMessageHeader(BACKUP_QUEUE_NAME, BACKUP_QUEUE_TYPE, this, null), properties);
        }
        return m_message;
    }
1348696
public byte[] getMessage() {
        byte result[] = new byte[3 + m_length];
        int offset = 0;

        result[offset++] = (byte)(m_length + 2);
        result[offset++] = (byte)m_slaveId;
        result[offset++] = (byte)m_status;
        if (m_length > 0) {
            System.arraycopy(m_data, 0, result, offset, m_length - 2);
        }

        return result;
    }
1267853
public String getMessage(Constraint constraint) {
		String objectName = null;
		if (constraint instanceof PropertyConstraint) {
			objectName = ((PropertyConstraint) constraint).getPropertyName();
		}
		String message = buildMessage(objectName, null, constraint);
		return message;
	}
350794
@Override
    public String getFormattedMessage() {
        if (formattedMessage == null) {
            if (message == null) {
                message = getMessage(messagePattern, argArray, throwable);
            }
            formattedMessage = message.getFormattedMessage();
        }
        return formattedMessage;
    }
349686
public String getMessage(String message, Object[] args)
    {
        for (int i=0;i<args.length;i++)
        {
            if (args[i] instanceof List<?>)
            {
                @SuppressWarnings("unchecked")
				List<ProxyField> list = (List<ProxyField>)args[i];
                StringBuilder sb = new StringBuilder();
                for (ProxyField pf: list)
                {
                    sb.append(String.valueOf(pf.getValue()));
                    sb.append(",");
                }
                if (sb.length()>0)
                {
                    args[i] = sb.substring(0, sb.length()-1);
                }
                else
                {
                    args[i] = "";
                }
            }
        }
        return m_messageSourceAccessor.getMessage(message, args);
    }
1229598
protected String getMessage(final SmsSendRequestDto smsSendRequestDto) {
    if (StringUtils.isNotBlank(smsSendRequestDto.getMessage())) {
      return smsSendRequestDto.getMessage();
    }
    Validate.notEmpty(defaultMessage, "defaultMessage must not be null or blank");
    return defaultMessage;
  }
1333748
public String getMessage()
  {

    String lastMessage = super.getMessage();
    Throwable exception = m_exception;

    while (null != exception)
    {
      String nextMessage = exception.getMessage();

      if (null != nextMessage)
        lastMessage = nextMessage;

      if (exception instanceof TransformerException)
      {
        TransformerException se = (TransformerException) exception;
        Throwable prev = exception;

        exception = se.getException();

        if (prev == exception)
          break;
      }
      else
      {
        exception = null;
      }
    }

    return (null != lastMessage) ? lastMessage : "";
  }
1067746
protected String getMessage(String key, String... args) {

        return Messages.get().getBundle(m_cms.getRequestContext().getLocale()).key(key, args);
    }