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