anchor.diff:  
   %% @doc Start the chef_index_sup indicating the application name under which the rabbitmq
   %% config is located.
  -start_link(AppName) ->
  -    supervisor:start_link({local, ?SERVER}, ?MODULE, AppName).
  +start_link() ->
  +    supervisor:start_link({local, ?SERVER}, ?MODULE, []).
   
  -init(AppName) ->
  -    error_logger:info_msg("starting chef_index_sup. using config from application '~p'~n", [AppName]),
  -    Children = amqp_child_spec(AppName),
  +init([]) ->
  +    error_logger:info_msg("starting chef_index_sup~n", []),
  +    Children = amqp_child_spec(),
       {ok, {{one_for_one, 60, 10}, Children}}.
   
  -amqp_child_spec(AppName) ->
  +amqp_child_spec() ->
       %% Lookup AMQP connection info
  -    GetEnv = make_get_env(AppName),
  -    case application:get_env(AppName, rabbitmq_host) of
  +    case application:get_env(chef_index, rabbitmq_host) of
           undefined ->
               error_logger:info_msg("RabbitMQ config missing. Indexing for search is disabled.~n"),
               [];
           {ok, Host} ->
  -            Port = GetEnv(rabbitmq_port),
  -            User = GetEnv(rabbitmq_user),
  -            Password = GetEnv(rabbitmq_password),
  -            VHost = GetEnv(rabbitmq_vhost),
  -            ExchgName = GetEnv(rabbitmq_exchange),
  +            Port = get_env(rabbitmq_port),
  +            User = get_env(rabbitmq_user),
  +            Password = get_env(rabbitmq_password),
  +            VHost = get_env(rabbitmq_vhost),
  +            ExchgName = get_env(rabbitmq_exchange),
               Exchange = {#'exchange.declare'{exchange=ExchgName, durable=true}},
               Network = {network, Host, Port, {User, Password}, VHost},
               error_logger:info_msg("Connecting to Rabbit at ~s:~p~s (exchange: ~p)~n",
  
positive.code: -include_lib("amqp_client/include/amqp_client.hrl").
  
  %% API
  -export([start_link/1]).
  
  %% Supervisor callbacks
  -export([init/1]).
  
negative.code:             [IndexDesc]
      end.
  
  get_env(Key) ->
      case application:get_env(chef_index, Key) of
          undefined ->
              throw({missing_application_config, {chef_index, Key}});
          {ok, Value} ->
              Value
      end.
  