I think leaving it up to the modulestore, if you know that it's not only an XML store, is your best bet.