anchor.diff:      New_Timer_ref = erlang:send_after(Time, Pid, {send_after, Name, Optional, Payload}),
       {noreply, State#state{timed_msgs = dict:store({Pid, Name}, New_Timer_ref, Time_msgs)}};
   handle_cast({set_value, Value}, State=#state{config = Config}) ->
  -    Name = proplists:get_value(name, Config),
  -    notify(janga_service_event:exists(), Name, now(), Value),
  +    Name = janga_config:get_value(name, Config),
  +    notify(janga_service_event:exists(), Name, Value),
       {noreply, State#state{value=Value}};
   handle_cast({stop}, State=#state{config = Config}) ->
  -    Name = proplists:get_value(name, Config), 
  +    Name = janga_config:get_value(name, Config), 
       lager:info("stopping service : ~p ", [Name]),
        {stop, normal, State}; 
   handle_cast({send_message, Message}, State=#state{config = Config}) ->
  
positive.code: handle_call({get_value}, _From, State=#state{value = Value}) ->
      {reply, Value, State};
  handle_call({get_name}, _From, State=#state{config = Config}) ->
      {reply, proplists:get_value(name, Config) , State};
  handle_call({get_start_time}, _From, State=#state{start_time = Start_time}) ->
      {reply, Start_time, State};
  handle_call({get_type}, _From, State=#state{config = Config}) ->
      {reply, proplists:get_value(type, Config, undefined) , State};
  handle_call({get_driver}, _From, State=#state{config = Config}) ->
  	{driver, Module, Module_config} = lists:keyfind(driver, 1, Config),
      {reply, {Module, Module_config} , State};
  handle_call({get_icon}, _From, State=#state{config = Config}) ->
      {reply, proplists:get_value(icon, Config, "service.png") , State};
  handle_call({get_config}, _From, State=#state{config = Config}) ->
      {reply, Config, State};
  handle_call({is_activ}, _From, State=#state{config = Config}) ->
      {reply, proplists:get_value(activ, Config) , State};
  handle_call({get_timer}, _From, State=#state{config = Config}) ->
      {reply, proplists:get_value(timer, Config, 0) , State};
  handle_call({get_database}, _From, State=#state{config = Config}) ->
      {reply, proplists:get_value(database, Config) , State};
  handle_call({get_description}, _From, State=#state{config = Config}) ->
      {reply, proplists:get_value(description, Config) , State};
  handle_call({get_state}, _From, State) ->
      {reply, State, State};
  handle_call({set_state, New_state}, _From, State) ->
      {reply, State, New_state};
  
  handle_call({get_module_config}, _From, State=#state{config = Config}) ->
      case proplists:get_value(ets, Config, false) of 
          true -> Table_Id = proplists:get_value(table_id, Config),
                  {reply, ets:tab2list(Table_Id) , State};
          false -> {driver, {_Module, _Func}, Module_config} = lists:keyfind(driver, 1, Config),
                   {reply, Module_config, State}
      end;
  handle_call({get_model}, _From, State=#state{config = Config}) ->    
      Reply = case proplists:get_value(model_fun, Config, []) of
          [] -> [];
          {Model, Function} -> F=list_to_atom(Function), 
                               Fun = fun Model:F/0,
  
negative.code:     save_data_to_ets(Config, data, Value).
  
  save_data_to_ets(Config, Key, Value) ->
    Table_Id = janga_config:get_value(?TABLE, Config),
    ets:insert(Table_Id, [{Key, Value}]).
  
  get_table_id(Config) ->
      janga_config:get_value(?TABLE, Config).
  %% --------------------------------------------------------------------
  %% Function: handle_cast/2
  %% Description: Handling cast messages
  