I would like to get the xmi:id of a UML2 element For example in my UML2 model I have a class named "Class1" corresponding to this portion of the XMI
<packagedElement xmi:type="uml:Class" xmi:id="_pEhskNd5EeGsNLQiqvGbrw" name="Class1">
how can I get id using the UML2 library? I know there is something like XMLResource and its have getId(EObject) but everytime its return me null