anchor.diff:  get_local_state() ->
       gen_server:call(?MODULE, get_local_state, infinity).
   
  +%% @doc Trigger function on connection close for a given node.
   on_down(Name, Function) ->
       gen_server:call(?MODULE, {on_down, Name, Function}, infinity).
   
  
positive.code: do_send_message(Name, Message, Connections) ->
      %% Find a connection for the remote node, if we have one.
      case dict:find(Name, Connections) of
          {ok, undefined} ->
              %% Node was connected but is now disconnected.
              {error, disconnected};
          {ok, Pid} ->
              gen_server:cast(Pid, {send_message, Message});
          error ->
              %% Node has not been connected yet.
  
negative.code:                       case V =:= From of
                            true ->
                                down(K, State),
                                dict:store(K, [], AccIn);
                            false ->
                                AccIn
                        end
  