code: private List<TestCaseResult> createResultFromMap(IResultMap resultMap) {
          logger.entering(resultMap);
          List<TestCaseResult> statusWiseResults = new ArrayList<TestCaseResult>();
  
          for (ITestResult singleMethodResult : resultMap.getAllResults()) {
              TestCaseResult tcresult1 = new TestCaseResult();
              tcresult1.setITestResultobj(singleMethodResult);
              statusWiseResults.add(tcresult1);
  
          }
          Collections.sort(statusWiseResults);
          logger.exiting(statusWiseResults);
          return statusWiseResults;
      }
docs: Generates individual TestCase Results based on map of passed, failed and skipped methods Returns the list of
  TestCaseResult objects generated.