Calls addChild method when copying a resource