code: public IMetric<?> getMetricFromName(final String name) {
      IMetric<?> metric = null;
      if (name != null) {
        for (final IMetric<?> currentMetric : this.metrics) {
          if (currentMetric.getName().equals(name)) {
            metric = currentMetric;
            break;
          }
        }
      }
      return metric;
    }
docs: Get metric object for a given metric name
  
  @param name metricName
  @return metric Object, if found. Otherwise null.