String.trim().length() == 0 replaced by StringUtil.isEmptyOrSpaces some elements make deprecated