private void initGC() {
    List<GarbageCollectorMXBean> l = ManagementFactory.getGarbageCollectorMXBeans();
    for (GarbageCollectorMXBean item : l) {
      if (item.isValid() && !gcMap.containsKey(item)) {
        gcMap.put(item, f.createStatistics(gcType, item.getName(), id));
      }
    }
  }
Remember that the given bean does not support collection usage.
geode-core/src/main/java/org/apache/geode/internal/stats50/VMStats50.java