I'd use use StringUtils.isEmpty(name) instead of "==null" since this would also catch empty names. How about these? Is an empty name valid (I guess they're not?)