Note: I realized that ValidationUtils should be used here.