anchor.diff:  
       {ok, State}.
   
  -%% part of init/1
  -init_get_backends(In, AppModule) when is_list(In), is_atom(AppModule) ->
  -    R =
  -	lists:foldl(fun(M, Acc) ->
  -			    case M:init(AppModule) of
  -				{ok, Opaque} ->
  -				    [{M, Opaque} | Acc];
  -				{error, E} ->
  -				    logger:log(error, "Config server: Failed initializing config backend ~p : ~p",
  -					       [M, E]),
  -				    throw('Config backend initialization failed');
  -				ignore ->
  -				    Acc
  -			    end
  -		    end, [], In),
  -    lists:reverse(R).
  +%%--------------------------------------------------------------------
  +%% Function: init([AppModule])
  +%%	     AppModule = atom(), YXA application module
  +%% Descrip.: Calls the init/1 function in each backend, and returns
  +%%           the backends opaque data structures that will later be
  +%%           passed to their parse/1 functions.
  +%% Returns : Res = list() of {Backend, Opaque}
  +%%           Backend = atom()
  +%%           Opaque  = term()
  +%%--------------------------------------------------------------------
  +init_backends(In, AppModule) when is_list(In), is_atom(AppModule) ->
  +    F = fun(M, Acc) ->
  +		case M:init(AppModule) of
  +		    {ok, Opaque} ->
  +			[{M, Opaque} | Acc];
  +		    {error, E} ->
  +			logger:log(error, "Config server: Failed initializing config backend ~p : ~p",
  +				   [M, E]),
  +			throw('Config backend initialization failed');
  +		    ignore ->
  +			Acc
  +		end
  +	end,
  +
  +    Res = lists:foldl(F, [], In),
  +    lists:reverse(Res).
   
   
   %%--------------------------------------------------------------------
  
positive.code: merge_entrys(Entrys, []) ->
      Entrys.
  
  validate(Cfg, AppModule, Mode) when is_record(Cfg, yxa_cfg), is_atom(AppModule), Mode == soft; Mode == hard ->
      %% check_config returns {ok, NewCfg} or {error, Msg}. NewCfg is an yxa_cfg
      %% record with all the values normalized according to the type declarations.
      yxa_config_check:check_config(Cfg, AppModule, Mode).
  
  load(Cfg, Mode, State) when is_record(Cfg, yxa_cfg), (Mode == soft orelse Mode == hard) ->
      ok = load_set(Cfg#yxa_cfg.entrys, Mode, State#state.etsref),
      ok = delete_not_present(Cfg, Mode, State#state.etsref),
  
negative.code: 	  } = State,
      true = ets:insert(EtsRef, {yxa_appmodule, AppModule, yxa_config_default}),
      ok.
  
  
  %%====================================================================
  %% Test functions
  %%====================================================================
  
  %%--------------------------------------------------------------------
  %% Function: test()
  %% Descrip.: autotest callback
  %% Returns : ok | throw()
  %%--------------------------------------------------------------------
  test() ->
      %% merge_entrys(Left, Right)
      %%--------------------------------------------------------------------
      autotest:mark(?LINE, "merge_entrys/2 - 1"),
      [{a,b,c}] = merge_entrys([], [{a,b,c}]),
  
      autotest:mark(?LINE, "merge_entrys/2 - 2"),
      [{a,b,c}] = merge_entrys([{a,a,a}], [{a,b,c}]),
  
      autotest:mark(?LINE, "merge_entrys/2 - 3"),
      [{a,b,c}] = merge_entrys([], [{a,b,c}]),
  
      autotest:mark(?LINE, "merge_entrys/2 - 4"),
      [{a,b,c},
       {b,2,2}] = merge_entrys([{b,2,2}], [{a,b,c}]),
  
      ok.
  