@Override
    public Optional<RegionObserver> getRegionObserver() {
      return Optional.of(this);
    }
Verify that thrift2 client calling thrift server can get the thrift server type correctly.
hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftHBaseServiceHandler.java