Import Capella

Hello,
I’m working on the import/export in Capella, in the functional Exchanges i found problems in their import because they need new ports. I want to generate the IDs for the new Components in my plugin . my question is when Capella create IDs for the new Components and how they are created (XML PIVOT merge)?
Thanks in advance,
Bassem