OK, I need to sort out how to get this list of cases trivially. It should live in casexml probably anyhow, or somewhere else in HQ and not here.