Code support for model validators