Update add_packaged_resource_to_catalogue with the latest changes