Get Capella Projects' path

Hi,
Imagine that I need to create a folder “myFolder” in a Capella project and then in my code refer to the files in the folder. So, how can I point to the “myFolder” or more generally how can I get the path of the Capella project? I may need to say /currentCapellaProj/myFolder or just say /myFolder/ .
What do you suggest?
Thanks,
Parsa

never mind, I could actually manage to do sth that seems to be working as below:
Best,
Parsa

Hi,
You can use EcoreUtil2 from plugin org.polarsys.capella.common
EcoreUtil2.getFile(resource).getProject() then usign .getLocation() or getPath()
Best regards