Sorry I mad it really complex, it is a reference problem.
I am using object reference to reference the nodes composing the block I want to replace, however because modifications are done in place, those references won’t be valid if I wan’t to reuse them on a copy of the model to replace by another block.
I think using node name should be fine for referencing, as long as each node have a unique name, do they?