Recover data from a template

I don’t know if it’s the right place to post but here is my problem.
I’m trying to program a plugin for capella to detect functional chain removed when we remove a component, or an element from a component from a template.
Here you can see an example of a simple template.
I want to know how I can recover the data of a component, a feature or an element to exploit it in my plugin.
Matthieu Durot

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.