Builder withSnapshotRegistry(SnapshotRegistry snapshotRegistry) {
            this.snapshotRegistry = snapshotRegistry;
            return this;
        }
The OffsetMetadataManager manages the offsets of all the groups. It basically maintains
a mapping from group id to topic-partition to offset. This class has two kinds of methods:
1) The request handlers which handle the requests and generate a response and records to
   mutate the hard state. Those records will be written by the runtime and applied to the
   hard state via the replay methods.
2) The replay methods which apply records to the hard state. Those are used in the request
   handling as well as during the initial loading of the records from the partitions.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java