Create a helper method for duplicating a node, preserving all the properties except the ID that could be passed as an argument or somehow deduced from the copy's context.
Check: https://github.com/Strumenta/egl-to-java-migration/pull/62#discussion_r2315060699