Answered this elsewhere. I'd encourage to reduce the number of places where this is posted.
We are happily accepting thoughts about how to implement this, as there's no structured API available - we'd have to fallback on Raw SQL Parsing, which can be fairly unreliable