def METHOD_NAME(self, store, origin, refs, target, _options):
    source = store.source("org.osbuild.files")
    files = {}
    for ref, data in refs.items():
        if origin == "org.osbuild.source":
            ref, data = self.map_source_ref(source, ref, data, target)
        else:
            ref, data = self.map_pipeline_ref(store, ref, data, target)
        files[ref] = data
    reply = {
        "path": target,
        "data": {
            "files": files
        }
    }
    return reply