private void attachRegionReplicationToMVCCEntry(
      final MiniBatchOperationInProgress<Mutation> miniBatchOp, WriteEntry mvccWriteEntry, long now)
      throws IOException {
      if (!this.regionReplicateEnable) {
        return;
      }
      assert !mvccWriteEntry.getCompletionAction().isPresent();

      final WALKeyImpl walKey = this.createWALKey(now);
      walKey.setWriteEntry(mvccWriteEntry);
      region.doAttachReplicateRegionReplicaAction(walKey,
        miniBatchOp.getWalEditForReplicateIfExistsSkipWAL(), mvccWriteEntry);
    }
Create {@link WALKeyImpl} and get {@link WALEdit} from miniBatchOp and attach
{@link RegionReplicationSink#add} to the mvccWriteEntry.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java