Add row to tree structure

Hello All,

I have a requirement to add a new row to table which will be same as selected row.
I have tried to add the selected details again in treeProvider but getting error testProvider.createRow(); as I am not able to pass the record.
Is there any alternative way to add new row to tree or if it is possible to add through template to add selected record.

Here Provider class is using as
private com.webMethods.caf.faces.data.tree.object.NodeTreeContentProvider testProvider = null;
testProvider= new BoundChildrenTreeContentProvider(getTest(),“test” , “#{test.customerId},#{test.orderId},#{test.widgetId}”, “#{test.orders},#{test.widgets}”);

Have attached the code sample for reference.

Any help is appreciated.

Thanks
Baharul
treeExample10_Oct.zip (41.1 KB)