private PoolSummary compilePoolSummary(Pool pool) {
   PoolSummary.Builder poolSummaryBuilder = aPoolSummary().withPoolName(pool.getName());
   for (Device device : pool.getDevices()) {
     compileResultsForDevice(pool, poolSummaryBuilder, device);
   }
   Device watchdog = getPoolWatchdog(pool.getName());
   compileResultsForDevice(pool, poolSummaryBuilder, watchdog);
   return poolSummaryBuilder.build();
 }
 private void compileResultsForDevice(
     Pool pool, PoolSummary.Builder poolSummaryBuilder, Device device) {
   File[] deviceResultFiles = fileManager.getTestFilesForDevice(pool, device);
   if (deviceResultFiles == null) {
     return;
   }
   for (File file : deviceResultFiles) {
     Collection<TestResult> testResults = parseTestResultsFromFile(file, device);
     poolSummaryBuilder.addTestResults(testResults);
   }
 }