protected CommitMetrics commitMetrics() {
    if (commitMetrics == null) {
      this.commitMetrics = CommitMetrics.of(new DefaultMetricsContext());
    }

    return commitMetrics;
  }
Cache used to enrich ManifestFile instances that are written to a ManifestListWriter.
iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/SnapshotProducer.java