public static CompletableFuture<ReplicateWALEntryResponse> replicateWALEntry(
    AsyncRegionServerAdmin admin, Entry[] entries, String replicationClusterId,
    Path sourceBaseNamespaceDir, Path sourceHFileArchiveDir, int timeout) {
    Pair<ReplicateWALEntryRequest, ExtendedCellScanner> p = buildReplicateWALEntryRequest(entries,
      null, replicationClusterId, sourceBaseNamespaceDir, sourceHFileArchiveDir);
    return admin.replicateWALEntry(p.getFirst(), p.getSecond(), timeout);
  }
A helper to replicate a list of WAL entries using region server admin
@param admin                  the region server admin
@param entries                Array of WAL entries to be replicated
@param replicationClusterId   Id which will uniquely identify source cluster FS client
                              configurations in the replication configuration directory
@param sourceBaseNamespaceDir Path to source cluster base namespace directory
@param sourceHFileArchiveDir  Path to the source cluster hfile archive directory
hbase-server/src/main/java/org/apache/hadoop/hbase/protobuf/ReplicationProtobufUtil.java