Well, Id is a String. However, isEmpty() only returns true if the string is literally "". Since we want to fail on things like " " as well, we can't use it. The method we usually use (isBlank) is not part of the SDK but part of Apache Commons, which we didn't want to bring in as a dependency.