anchor.diff:    case proplists:get_value(<<"vhost">>, Data) of
       undefined -> "/";
       Perm -> erlang:binary_to_list(Perm)
  -  end.+  end.
  +  
  +  
  +%%====================================================================
  +%% DEPRECATED SUPPORT
  +%%====================================================================
  +map_user_to_vhost(Username, Vhost) ->
  +  rabint:call({rabbit_access_control, map_user_vhost, [Vhost, Username]}),
  +  {?MODULE, lists:append(["Mapped ", Vhost, Username])}.
  +
  +unmap_user_from_vhost(Username, Vhost) ->
  +  rabint:call(Node, {rabbit_access_control, unmap_user_vhost, [Vhost, Username]}),
  +  {?MODULE, lists:append(["Unmapped ", Username, Vhost])}.
  +  
  +list_vhost_users(Vhost) ->
  +  O = rabint:call({rabbit_access_control, list_vhost_users, [Vhost]}),
  +  {?MODULE, O}.
  +
  +list_user_vhosts(Username) ->
  +  O = rabint:call({rabbit_access_control, list_user_vhosts, [Username]}),
  +  {?MODULE, O}.
positive.code:     {_Error, Reason} -> 
        ?ERROR("Got error in rabint call for get_user_perms: ~p~n", [Reason]),
        {?MODULE, erlang:list_to_binary("unknown user: "++Username)};
      % Jsonable = [{struct, [{"applications", Apps}, {"nodes", Nodes}, {"running_nodes", RunningNodes}]}],
      Bin -> {"permissions", [erlang:tuple_to_list(P) || P <- Bin ]}
    end.
  
negative.code:   VHost = extract_vhost(Data),
    case rabint:call({rabbit_access_control, clear_permissions, [Username, VHost]}) of
      {Error, _} -> {?MODULE, Error};
      {child_error, function_clause} -> 
        ?ERROR("DEPRECATED SUPPORT: To get rid of this message, upgrade to RabbitMQ 1.6"),
        unmap_user_from_vhost(Username, Vhost);
      ok -> get_user_perms(Username)
    end;
    
  