Implementing request validation using annotations.