We should probably move this kind of functionality into a separate utility module (JUnitResult.js) that can be used from CassandraBackend and others to work with the return JUnit XML result. It does not really belong in the web service front-end, as it should be independent of the front-end.