With the .clone() you can easily create new element that you can place in you tree and modifies them
below is a example where we take a Uniform layer inside the compo and then create a copy of it
then with this copy we can change its parameter here for example we change the label of the layer and the color generated by the Uniform