code: protected static String ellipsis(String message, int maxLength)
    {
      if(message == null) {
        return "null";
      }
      return message.length() < maxLength ? message : message.substring(0, maxLength - ELLIPSIS.length()) + ELLIPSIS;
    }
docs: Ensure message is not larger than requested maximum length. If message length is larger than allowed size shorten
  it and append ellipsis. This method guarantee maximum length is not exceed also when ellipsis is appended.
  <p>
  This method returns given <code>message</code> argument if smaller that requested maximum length or a new created
  string with trailing ellipsis if larger.
  
  @param message message string, possible null,
  @param maxLength maximum allowed space.
  @return given <code>message</code> argument if smaller that requested maximum length or new created string with
  trailing ellipsis.