private List<Long> populateTestSetIds(ISuite suite)
   {
      List<Long> testSetIds = null;
      try {
         if (this.qcTestSetId > 0) { //testset id sent via command line or config file.
            testSetIds = Arrays.asList(this.qcTestSetId);
         } else {
            String testsetName = map2QcTestSetName(suite);
            if (testsetName != null) {
               long testSetId = qcConnector.getTestSetId(
                        QcConstants.QC_TESTSETFOLDER_PATH, testsetName);
               if (testSetId > 0) {
                  log.info("Got testset for suite {} : {}", testsetName,
                           testSetId);
                  testSetIds = Arrays.asList(testSetId);
               } else {
                  log.warn("No testset found for suite :");
               }
            } else {
               Map<Long, String> testsets = qcConnector.getTestSets(QcConstants.QC_TESTSETFOLDER_PATH);
               if (testsets != null && !testsets.isEmpty()) {
                  testSetIds = Arrays.asList(testsets.keySet().toArray(
                           new Long[0]));
                  log.info("Got testsets under specified folder {} : {}",
                           QcConstants.QC_TESTSETFOLDER_PATH, testSetIds);
               } else {
                  log.warn("No testsets found under testset folder :"
                           + QcConstants.QC_TESTSETFOLDER_PATH);
               }
            }
         }
      } catch (Exception ex) {
         log.error("Got an exception while fetching testSetId from QC :", ex);
      }
      return testSetIds;
   }