anchor.diff:  % debug
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
  +-define(TRACE(X,Y), ok).
   %-define(TRACE(X,Y), io:format("~w [~p] " ++ X ++ "~n", [?MODULE, self()] ++ Y)).
  --define(TRACE(X,Y), ok).
   
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   % type definitions
  
positive.code: on({get_state_response, MyI}, State =
         #rr_resolve_state{ operation = {key_upd_send, _, KeyList},
                            dhtNodePid = DhtPid }) ->    
      FilterKeyList = [K || X <- KeyList, 
                            K <- ?RT:get_replica_keys(X), 
                            intervals:in(K, MyI)],
      UpdI = intervals:from_elements(FilterKeyList),
      comm:send_local(DhtPid, {get_entries, self(), 
                               fun(X) -> intervals:in(db_entry:get_key(X), UpdI) end,
                               fun(X) -> {db_entry:get_key(X),
                                          db_entry:get_value(X), 
                                          db_entry:get_version(X)} end}),
      State;
  
  on({get_entries_response, KVVList}, State =
  
negative.code:                          fun(I) ->
                                   {lists:nth(I, FieldNames), erlang:element(I + 1, Stats)}
                           end),    
      [erlang:element(1, Stats), lists:flatten(Res)].
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % STARTUP
  