boolean hasRegionReplicaReplicationPeer() throws ReplicationException {
    return peerStorage.listPeerIds().stream()
      .anyMatch(p -> p.equals(ServerRegionReplicaUtil.REGION_REPLICA_REPLICATION_PEER));
  }
For replication peer cluster key or endpoint class, null and empty string is same. So here
don't use {@link StringUtils#equals(CharSequence, CharSequence)} directly.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/ReplicationPeerManager.java