Might want this to check against something like StringUtils.isBlank() rather than just null check.