Batch autodeploy bar file

I'm working on project that can be deployed each bar in a specific directory. But i need some clues.
When i'm trying to deploy a bar file trough the Engine API, you need to create a 'BarResource'. In that bar resource, you need to add a ProcessDefinition, but, the only way to get that ( that i have found), it's to unzip bar file and parse 'process-design.xml'.

It's possible to get all 'BarRessource' information without unzip all the bar files?