That's a good idea but the problem is that instance.type.oclType() always
returns MyMETAMODEL!EClass and it is correct because instance.type is a
reference to EModelElement from Ecore.
Another problem is that instance.type or instance.type.name should return
something like UML!Class or UML!Generalization but in screen appears
IN<notnamedyet>.
The only I think that I could do is to obtain the value of href
("UML.ecore#//Generalization") and compare as strings with
UML!"uml::Class".name. Is it possible ?¿?