Bean Validation: add checks for parameters and result.