docs: public int[] listStatisticsBySet(String statisticSet) {
          //System.out.println("&&&&& calling listStatisticsBySet "+statisticSet);
  
          if (statisticSet.equals(StatConstants.STATISTIC_SET_NONE) ||
              statisticSet.equals(StatConstants.STATISTIC_SET_CUSTOM))
              return new int[0];
  
          int k = 0;
          if (statisticSet.equals(StatConstants.STATISTIC_SET_BASIC))
              k = 1;
          else if (statisticSet.equals(StatConstants.STATISTIC_SET_EXTENDED))
              k = 2;
          else if (statisticSet.equals(StatConstants.STATISTIC_SET_ALL))
              k = 3;
          //System.out.println("perfData.values() for  = "+this.getShortName());
          //System.out.println("perfData.values() = "+perfData.values());
          ArrayList list = new ArrayList(3);
          Iterator allData = perfData.values().iterator();
  
          //System.out.println("&&& alldata ="+allData);
  
          while (allData.hasNext()) {
              PmiDataInfo dataInfo = (PmiDataInfo) allData.next();
              //System.out.println("&&& dataInfo ="+dataInfo.getName());
              String s = dataInfo.getStatisticSet();
              if (s.equals(StatConstants.STATISTIC_SET_BASIC)) {
                  if (k > 0)
                      list.add(new Integer(dataInfo.getId()));
              } else if (s.equals(StatConstants.STATISTIC_SET_EXTENDED)) {
                  if (k > 1)
                      list.add(new Integer(dataInfo.getId()));
              } else if (s.equals(StatConstants.STATISTIC_SET_ALL)) {
                  if (k > 2)
                      list.add(new Integer(dataInfo.getId()));
              }
          }
  
          int[] statSet = new int[list.size()];
          for (int i = 0; i < list.size(); i++) {
              statSet[i] = ((Integer) list.get(i)).intValue();
          }
  
          return statSet;
      }