public void afterSuite(TestDescriptor suite, TestResult result) {
   if (suite.getParent() == null) {
     cachingFileWriter.closeAll();
     writeResults();
   }
 }