/**
   * @param nodeId Node ID.
   * @param res Response.
   */
  private void processLockResponse(UUID nodeId, GridNearLockResponse<K, V> res) {
    assert nodeId != null;
    assert res != null;

    GridNearLockFuture<K, V> fut =
        (GridNearLockFuture<K, V>) ctx.mvcc().<Boolean>future(res.version().id(), res.futureId());

    if (fut != null) fut.onResult(nodeId, res);
  }