Adds addChild method in ResourceNode