code: public GarbageCollectorMXBean getYoungCollectorMXBean() {
          GarbageCollectorMXBean bean = 
              this.getGarbageCollectorMXBean(this.youngCollector);
          if (bean != null) { return bean; }
          
          outer: for (GarbageCollectorMXBean bean2 : getGarbageCollectorMXBeans()) {
              for (String pool : bean2.getMemoryPoolNames()) {
                  for (String name : this.tenuredGen) {
                      if (pool.equals(name)) {
                          continue outer;
                      }
                  }
              }
              
              return bean2;
          }
  
          return null;
      }
docs: Get the {@link GarbageCollectorMXBean} that is associated with purely
  the young generation including the eden and survivor spaces.  This
  returns the collector that has the configured <code>YoungCollector</code>
  name.  If no collector has been configured, then this attempts to return
  the first collector that excludes the tenured generation based on the
  <code>TenuredGen</code> configuration or one of the known defaults.  If
  no collector is found, then <code>null</code> is returned.
  
  @return The young generation collector or <code>null</code>
  
  @see #setYoungCollector(String)
  @see #getTenuredMemoryPoolMXBean()
  @see #getGarbageCollectorMXBean(String)
  @see #getGarbageCollectorMXBeans()
  
  @see #TENURED_GENERATION_POOLS