KHRES-328 #comment use Java instead of Groovy for the StringUtil to avoid groovy weirdness