anchor.diff:  -spec get_stats_session_id(stats()) -> rrepair:session_id() | null.
   get_stats_session_id(Stats) -> Stats#resolve_stats.session_id.
   
  --spec get_stats_feedback(stats()) -> boolean().
  -get_stats_feedback(Stats) -> Stats#resolve_stats.feedback_response.
  -
   %% @doc merges two stats records with identical session_id, otherwise error will be raised
   -spec merge_stats(stats(), stats()) -> stats() | error.
   merge_stats(#resolve_stats{ session_id = ASID,
                               diff_size = ADiff,
  -                            feedback_response = AFB,
                               regen_count = ARC,
                               regen_fail_count = AFC,
                               upd_fail_count = AUFC,
                               update_count = AUC },
               #resolve_stats{ session_id = BSID,
                               diff_size = BDiff,
  -                            feedback_response = BFB,
                               regen_count = BRC,
                               regen_fail_count = BFC,
                               upd_fail_count = BUFC,
  
positive.code: 
  on({start, Operation, Options}, State) ->
      FBDest = proplists:get_value(feedback_request, Options, undefined),
      FBResp = proplists:get_value(feedback_response, Options, false),
      FromMyNode = proplists:get_value(from_my_node, Options, 1),
      StatsDest = proplists:get_value(send_stats, Options, undefined),
      SID = proplists:get_value(session_id, Options, null),
      NewState = State#rr_resolve_state{ operation = Operation,
                                         stats = #resolve_stats{ feedback_response = FBResp,
                                                                 session_id = SID },
                                         feedbackDestPid = FBDest,
                                         send_stats = StatsDest,
                                         from_my_node = FromMyNode },
      ?TRACE("RESOLVE START - Operation=~p~n FeedbackTo=~p - FeedbackResponse=~p~n SessionId:~p",
             [util:extint2atom(element(1, Operation)), FBDest, FBResp, SID], NewState),
      comm:send_local(State#rr_resolve_state.dhtNodePid, {get_state, comm:this(), my_range}),
      NewState;
  
  
negative.code:          regen_count      = 0      :: non_neg_integer(),
           update_count     = 0      :: non_neg_integer(),
           upd_fail_count   = 0      :: non_neg_integer(),
           regen_fail_count = 0      :: non_neg_integer()
           }).
  -type stats() :: #resolve_stats{}.
  
  