@SuppressWarnings("unchecked")
    @Override
    public <M extends Message> M deserialize(Class<M> clazz) throws IOException {
      Parser<M> parser = (Parser<M>) Internal.getDefaultInstance(clazz).getParserForType();
      try {
        return parser.parseDelimitedFrom(inputStream);
      } catch (InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      }
    }
A serializer (deserializer) for those Procedures which were serialized before this patch. It
deserializes the old, binary stateData field.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureUtil.java