code: public GarbageCollectorMXBean getGarbageCollectorMXBean(String name) {
          for (GarbageCollectorMXBean bean : getGarbageCollectorMXBeans()) {
              if (bean.getName().equals(name)) {
                  return bean;
              }
          }
          
          return null;
      }
docs: Get the {@link GarbageCollectorMXBean} with the given name. If no garbage
  collector exists for the given name, then <code>null</code> is returned.
  
  @param name The name of the garbage collector to retrieve
  
  @return The associated garbage collector or <code>null</code>
  
  @see #getGarbageCollectorMXBeans()