public static boolean hasText(CharSequence str) {
        if (!hasLength(str)) {
            return false;
        }
        int strLen = str.length();
        for (int i = 0; i < strLen; i++) {
            if (!Character.isWhitespace(str.charAt(i))) {
                return true;
            }
        }
        return false;
    }
Check whether the given {@code CharSequence} contains actual <em>text</em>.
<p>More specifically, this method returns {@code true} if the
{@code CharSequence} is not {@code null}, its length is greater than
0, and it contains at least one non-whitespace character.
<p><pre class="code">
StringUtils.hasText(null) = false
StringUtils.hasText("") = false
StringUtils.hasText(" ") = false
StringUtils.hasText("12345") = true
StringUtils.hasText(" 12345 ") = true
</pre>
@param str the {@code CharSequence} to check (may be {@code null})
@return {@code true} if the {@code CharSequence} is not {@code null},
its length is greater than 0, and it does not contain whitespace only
@see Character#isWhitespace
agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/util/spring/StringUtils.java