anchor.diff:  %%--------------------------------------------------------------------
   -spec save(datastore:document()) ->
       {ok, datastore:key()} | datastore:generic_error().
  -save(Document = #document{key = {Uuid, Name}}) ->
  +save(Document) ->
       case datastore:save(?STORE_LEVEL, Document) of
  -        {ok, Key}->
  -            ok = datastore:add_links(?LINK_STORE_LEVEL, Uuid, ?MODEL_NAME, {Name, {Key, ?MODEL_NAME}}),
  +    {ok, Key}->
  +        {Uuid, Name} = decode_key(Key),
  +        ok = datastore:add_links(?LINK_STORE_LEVEL, Uuid, ?MODEL_NAME, {?XATTR_LINK_NAME(Name), {Key, ?MODEL_NAME}}),
               {ok, Key};
           Error ->
               Error
  
positive.code: 
  -export_type([name/0, value/0]).
  
  %%%===================================================================
  %%% API
  %%%===================================================================
  
negative.code: -spec get_by_name(file_meta:uuid(), xattr:name()) ->
      {ok, datastore:document()} | datastore:get_error().
  get_by_name(FileUuid, XattrName) ->
      xattr:get(encode_key(FileUuid, XattrName)).
  
  %%--------------------------------------------------------------------
  %% @doc Deletes extended attribute with given name
  