docs: protected PutOperation<K, V> resolve(ServerStoreProxy.ChainEntry entry, K key, int threshold) {
      PutOperation<K, V> result = null;
      ChainBuilder resolvedChain = new ChainBuilder();
      for (Element element : entry) {
        ByteBuffer payload = element.getPayload();
        Operation<K, V> operation = codec.decode(payload);
  
        if(key.equals(operation.getKey())) {
          result = applyOperation(key, result, operation);
        } else {
          payload.rewind();
          resolvedChain = resolvedChain.add(payload);
        }
      }
      if(result != null) {
        resolvedChain = resolvedChain.add(codec.encode(result));
      }
  
      if (entry.length() - resolvedChain.length() > threshold) {
        entry.replaceAtHead(resolvedChain.build());
      }
      return result;
    }