This should use AttributeDefinition.validateAndSet()