class StringUtil {

    static public String toStringWithNullAsEmpty(Object obj) {
        if (obj == null) {
            return "";
        } else {
            return obj.toString();
        }
    }

}