XMLResource resource = (XMLResource) targetObject.eResource();
String authorID = resource.getID(targetObject);
// Test : Reload the target object
resource.unload();
resource.load(null);
// Verify : Check that the extrinsic ID was restored.
EObject obj = resource.getContents().get(0);