code: public void setCommittedMetrics() {
      	for (MetricImpl.MetricType metricType : this.tranCoordinatedMetricTypes) {
      		committedMetrics.put(metricType.name(), new MetricImpl(metricType, this.getMetric(metricType).getValue()));
      	}
      }
docs: Creates/Updates the committedMetrics variable using the passed in metric types