class IrisMetrics {

   public static IrisMetricSet metrics(String name) {
      String realName = cleanName(name) + ".";

      IrisMetricSet set = sets.putIfAbsent(name, new IrisMetricSet(realName));
      if (set == null) {
         set = sets.get(name);
         if (set == null) { throw new IllegalStateException("set cannot be null here"); }
      }

      return set;
   }

}