@Override
    public Optional<RegionObserver> getRegionObserver() {
      return Optional.of(this);
    }
Custom coprocessor that just copies the write to another table.
hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestOpenTableInCoprocessor.java