private static boolean endsWithWhite(String str) {
    if ((str != null) && (!str.isEmpty()) && Verifier.isXMLWhitespace(str.charAt(str.length() - 1))) {
      return true;
    }
    return false;
  }
private static boolean endsWithWhite(String str)