upgrade to a Java that can use StringUtil
Rewriting select to use StringUtil