@Override
    protected void configure() {
      bindFactory(GsonFactory::buildGson).to(Gson.class).in(Singleton.class);
      bind(GsonMessageBodyWriter.class).to(MessageBodyWriter.class).in(Singleton.class);
    }
Register this feature's provided functionality and defines their lifetime scopes.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/http/gson/GsonSerializationFeature.java