anchor.diff:  %%--------------------------------------------------------------------
   -spec create(datastore:document()) ->
       {ok, datastore:key()} | datastore:create_error().
  -create(Document = #document{key = {Uuid, Name} = Key}) ->
  +create(Document) ->
       case datastore:create(?STORE_LEVEL, Document) of
           {ok, Key}->
  -            ok = datastore:add_links(?LINK_STORE_LEVEL, Uuid, ?MODEL_NAME, {Name, {Key, ?MODEL_NAME}}),
  +            {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:     ok | datastore:generic_error().
  before(_ModelName, _Method, _Level, _Context) ->
      ok.
  
negative.code: %% @end
  %%--------------------------------------------------------------------
  -spec delete(datastore:key()) -> ok | datastore:generic_error().
  delete(Key) ->
      case datastore:delete(?STORE_LEVEL, ?MODULE, Key) of
          ok ->
              {Uuid, Name} = decode_key(Key),
              ok = datastore:delete_links(?LINK_STORE_LEVEL, Uuid, ?MODEL_NAME, ?XATTR_LINK_NAME(Name));
          Error ->
              Error
      end.
  