How to create the path for an IElement?

Does A12 provide any functionality to create the path for an IElement? Lot’s of api require it being passed. However I’ve not found some A12 utility that creates it for me.

A better approach than the chosen solution is to use

com.mgmtp.a12.kernel.md.model.api.services.IDocumentModelService#getPath(IElement)

Thanks to @gildardo-cached-canyon for pointing me towards this.

Moin,
there is a utility function, which you can use in order to get the path for an IElement: com.mgmtp.a12.kernel.md.model.api.services.IDocumentModelService#getPath(IElement)

public interface IDocumentModelService {
    ...
    String getPath(IElement var1);
    ...
}