@Override
  public Optional<RegionObserver> getRegionObserver() {
    return Optional.of(this);
  }
This coprocessor is used to slow down opening of the replica regions.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/RegionServerHostingReplicaSlowOpenCoprocessor.java