List beanList = ManagementFactory.getGarbageCollectorMXBeans();
Iterator iter = beanList.iterator();
while(iter.hasNext()) {
GarbageCollectorMXBean bean = (GarbageCollectorMXBean) iter.next();
StatsHolder gcNode = gcsNode.addChild(bean.getName(), MonitoredObjectType.JVM_GC);
gcNode.setStats(new JVMGarbageCollectorStatsImpl(bean));
gcNode.setStatsClass(com.sun.enterprise.admin.monitor.stats.JVMGarbageCollectorStats.class);
gcNode.setDottedName(DottedNameFactory.getJVMGCDottedName(bean.getName()));
gcNode.setObjectName(MonitoringObjectNames.getJVMGCObjectName(bean.getName()));
gcNode.registerMBean();
}