@Override
  protected ReplicationPeerConfig getOldPeerConfig() {
    return oldPeerConfig;
  }
The procedure for updating the config for a replication peer.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/UpdatePeerConfigProcedure.java