duplicate

Returns a deep copy of a CompositionNode. If insert is true the copy is inserted at cursor.

Return

a deep copy of the node