In Javascript, I can use the addNode() method to add an existing node to a new space. But in Java if I try to do the same thing with addChild(), I get an error:
org.alfresco.service.cmr.repository.DuplicateChildNodeNameException: Duplicate child name not allowed:
Is this action allowed in Javascript but not in Java? What do I need to do to make it work with Java?