Get a DgnModelRefP from a DgnAttachmentP

Given a  DgnAttachmentP pointer, how can I obtain a DgnModelRefP ?

the GetParentModelRefP() seems to be something else (the model that contains the reference); I just need the reference itself, as I should call some functions like :

mdlRefFile_transformAttachment() to manipulate the reference