save_resource_in_item_library utility