code: public <T extends Metric> T register(String name, T metric) throws IllegalArgumentException {
          return registry.register(name(name), metric);
      }
docs: Given a {@link Metric}, registers it under the given name.
  
  @param name   the name of the metric
  @param metric the metric
  @param <T>    the type of the metric
  @return {@code metric}
  @throws IllegalArgumentException if the name is already registered
  @see com.codahale.metrics.MetricRegistry#register