docs: @SuppressWarnings("unchecked")
    public <T extends IMetric> T registerMetric(String name, T metric, int timeBucketSizeInSecs) {
      MetricDelegate d = new MetricDelegate(metric);
      delegate.registerMetric(name, d, timeBucketSizeInSecs);
      return metric;
    }