public static String cutToMaxLength(String whatToCut, int maxLength) {
    return StringUtil.shortenTextWithEllipsis(whatToCut, maxLength, (maxLength / 2 - 1), false);
  }
public static String cutToMaxLength(String whatToCut, int maxLength)