public String getFileContent(String filePath) throws IOException, SAXException {
return attemptGetFileContent(filePath);
}
private String attemptGetFileContent(String filePath) throws IOException, SAXException {
TestExecutionReport report = readTestExecutionReport(filePath);
if (!exactlyOneReport(report))
return null;
return report.getContentsOfReport(0);
}