first implementation of validation using ecore diagnostics