In addition to the other answers, I ran across this because I'm a C# programmer primarily, but trying to keep fresh in Java. I noticed that when I tried to use StringUtils my IDE (Eclipse) imported it from com.mysql.jdbc.StringUtils which actually has an isNullOrEmpty(myStringObject) method.
ex.
import com.mysql.jdbc.StringUtils;
StringUtils.isNullOrEmpty(host)
Just another alternative for those who already have the MySQL connector referenced in your project, but not the other StringUtils library.