metamodel translation: better error handling