Sorry I think I was wrong, as the batcher uses a specific archive. Something to do with the materials and atlas' which is one of the things I do not understand. (can't know everything)
I was just thinking of all the places where you can specify an archive & record like inventory items etc. Apologies for the disinfo.
As for the loot clicks, look at TheLacus' mod code in github to see how that works. You could also create custom click handlers and register for any flat (archive/record) you wanted to handle... that could be cumbersome though, so would be better if you can use the interface TheLacus created.