anchor.diff:  %%--------------------------------------------------------------------
   -spec decode_record(ejson()) -> {record_version(), term()}.
   decode_record({Term}) when is_list(Term) ->
  -    Type = decode_record(proplists:get_value(<<?RECORD_TYPE_MARKER>>, Term), atom),
  +    ModelName0 = decode_record(proplists:get_value(<<?RECORD_TYPE_MARKER>>, Term), atom),
       Version = decode_record(proplists:get_value(<<?RECORD_VERSION_MARKER>>, Term), integer),
  -    {record, Fields} = Type:record_struct(Version),
  +    ModelName = maybe_rename_model(ModelName0, Version),
  +    {record, Fields} = ModelName:record_struct(Version),
       {Version, decode_record({Term}, {record, Version, Fields})}.
   
   %%--------------------------------------------------------------------
  
positive.code:     Term;
  encode_record(key, Term, integer) when is_integer(Term) ->
      integer_to_binary(Term);
  encode_record(value, Term, integer) when is_integer(Term) ->
      Term;
  encode_record(value, Term, float) when is_integer(Term) ->
      float_to_binary(float(Term));
  encode_record(key, Term, float) when is_float(Term) ->
      float_to_binary(Term);
  encode_record(value, Term, float) when is_float(Term) ->
      Term;
  encode_record(value, Term, #{} = Struct) when is_map(Term) ->
      [{KeyType, ValueType}] = maps:to_list(Struct),
      {maps:fold(
  
negative.code: %% API
  -export([encode_record/1, decode_record/1, validate_struct/1]).
  -export([encode_record/2, decode_record/2]).
  -export([encode_record/3]).
  -export([decode_record_vcs/1, record_upgrade/4]).
  -export([get_renamed_models/0]).
  
  
  %%%===================================================================
  %%% API functions
  %%%===================================================================
  
  %%--------------------------------------------------------------------
  %% @doc
  %% Maps old model name to new one.
  %% @end
  %%--------------------------------------------------------------------
  -spec get_renamed_models() -> #{OldName :: model_behaviour:model_type() => {RenameVersion :: record_version(), NewName :: model_behaviour:model_type()}}.
  get_renamed_models() ->
      maps:merge(plugins:apply(node_manager_plugin, renamed_models, []),
          #{}
      ).
  
  
  %%--------------------------------------------------------------------
  %% @doc
  