anchor.diff:       ]
       }.
   
  -authorize_local_message(Target, CallingService) ->
  -    ?debug("    authorize_rpc:authorize_local_msg(): target: ~p ~n", [Target]),
  -    ?debug("    authorize_rpc:authorize_local_msg(): calling_service: ~p ~n", [CallingService]),
  +authorize_local_message(ServiceName, CallingService) ->
  +    ?debug("authorize_rpc:authorize_local_msg(): service_name:    ~p ~n", [ServiceName]),
  +    ?debug("authorize_rpc:authorize_local_msg(): calling_service: ~p ~n", [CallingService]),
       {ok, 
        [ 
          { status, rvi_common:json_rpc_status(ok)},
          { signature, "fixme_add_signature" },
  -%%       { certificate, get_certificate_body(CallingService, Target) }
  +%%       { certificate, get_certificate_body(CallingService, ServiceName) }
          { certificate, "certificate"  }
        ]}.
   
  -authorize_remote_message(Target, Signature, Certificate) ->
  -    ?debug("    authorize_rpc:authorize_remote_msg(): target: ~p ~n", [Target]),
  -    ?debug("    authorize_rpc:authorize_remote_msg(): signature: ~p ~n", [Signature]),
  -    ?debug("    authorize_rpc:authorize_remote_msg(): certificate: ~p ~n", [Certificate]),
  +authorize_remote_message(ServiceName, Signature, Certificate) ->
  +    ?debug("authorize_rpc:authorize_remote_msg(): service_name: ~p ~n", [ServiceName]),
  +    ?debug("authorize_rpc:authorize_remote_msg(): signature:    ~p ~n", [Signature]),
  +    ?debug("authorize_rpc:authorize_remote_msg(): certificate:  ~p ~n", [Certificate]),
       {ok, 
        [ 
          { status, rvi_common:json_rpc_status(ok) },
  
positive.code: %% Retrieve certificate. 
  %% Certificate will be passed to exo_json:encode() in order
  %% to be translated to JSON.
  get_certificate_body(_CallingService, _TargetService) ->
      {struct, 
       [
        %% Topic tree patterns that this node is authorized to
  
negative.code: %% JSON-RPC entry point
  %% CAlled by local exo http server
  handle_rpc("authorize_local_message", Args) ->
      {ok, ServiceName} = rvi_common:get_json_element(["service_name"], Args),
      {ok, CallingService} = rvi_common:get_json_element(["calling_service"], Args),
      authorize_local_message(ServiceName, CallingService);
  
  handle_rpc("authorize_remote_message", Args) ->
      {ok, ServiceName} = rvi_common:get_json_element(["service_name"], Args),
      {ok, Signature} = rvi_common:get_json_element(["signature"], Args),
      {ok, Certificate} = rvi_common:get_json_element(["certificate"], Args),
      authorize_remote_message(ServiceName , Signature, Certificate);
  
  handle_rpc(Other, _Args) ->
      ?debug("authorize_rpc:handle_rpc(~p): unknown", [ Other ]),
      { ok, [ { status, rvi_common:json_rpc_status(invalid_command)} ] }.
  