code: public static ServiceInstance deserializeServiceInstance(
        byte[] data, Codec<ServiceInstance> codec) throws IOException {
  
      return codec.deserialize(new ByteArrayInputStream(data));
    }
docs: Creates a service instance object deserialized from byte array.
  
  @param data the byte array contains a serialized Thrift service instance
  @param codec the codec to use to deserialize the byte array