anchor.diff:  %%--------------------------------------------------------------------
   -spec find(ResourceType :: binary(), Ids :: [binary()]) ->
       {ok, proplists:proplist()} | gui_error:error_result().
  -find(<<"data-space">>, [SpaceId]) ->
  -    SessionId = g_session:get_session_id(),
  -    {ok, #file_attr{name = SpaceName}} = logical_file_manager:stat(
  -        SessionId, {uuid, SpaceId}),
  -    Res = space_record(SpaceId, SpaceName),
  +find(<<"data-space">>, [SpaceDirId]) ->
  +    SpaceId = fslogic_uuid:space_dir_uuid_to_spaceid(SpaceDirId),
  +    {ok, #document{
  +        value = #space_info{
  +            name = Name
  +        }}} = space_info:get(SpaceId),
  +    DefaultSpaceDirId = g_session:get_value(?DEFAULT_SPACE_KEY),
  +    Res = [
  +        {<<"id">>, SpaceDirId},
  +        {<<"name">>, Name},
  +        {<<"isDefault">>, SpaceDirId =:= DefaultSpaceDirId},
  +        {<<"rootDir">>, SpaceDirId}
  +    ],
       {ok, Res}.
   
   
  
positive.code: -spec find_all(ResourceType :: binary()) ->
      {ok, proplists:proplist()} | gui_error:error_result().
  find_all(<<"data-space">>) ->
      SessionId = g_session:get_session_id(),
      {ok, SpaceDirs} = logical_file_manager:ls(SessionId,
          {path, <<"/spaces">>}, 0, 1000),
      Res = lists:map(
          fun({SpaceId, SpaceName}) ->
              space_record(SpaceId, SpaceName)
          end, SpaceDirs),
      {ok, Res}.
  
  
  
negative.code:     SessionId = g_session:get_session_id(),
      {ok, #document{value = #session{auth = Auth}}} = session:get(SessionId),
      #auth{macaroon = Mac, disch_macaroons = DMacs} = Auth,
      {ok, DefaultSpaceId} = oz_users:get_default_space({user, {Mac, DMacs}}),
      DefaultSpaceDirId = fslogic_uuid:spaceid_to_space_dir_uuid(DefaultSpaceId),
      g_session:put_value(?DEFAULT_SPACE_KEY, DefaultSpaceDirId),
      ok.
  
  
  