@Override
  protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException {
    super.serializeStateData(serializer);
    CloseExcessRegionReplicasProcedureStateData data = CloseExcessRegionReplicasProcedureStateData
      .newBuilder().setTableName(ProtobufUtil.toProtoTableName(tableName))
      .setNewReplicaCount(newReplicaCount).build();
    serializer.serialize(data);
  }
Procedure for close excess region replicas.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CloseExcessRegionReplicasProcedure.java