__insert_resource
conflict = __insert_resource(root, new);
if (__insert_resource(base, res) || res->child)
conflict = __insert_resource(parent, new);