Constraint validation for instance attributes in a service