But, i am not understanding how to get Resource from ResourceSet. In the tutorial an instance of ResourceSet is created. I have created the profile with uml2tools and registered it in org.eclipse.uml2.uml.generated_package extension. So, how can I load an already defined Resource? I need to register it to ResourceSet object or is there another option?