anchor.diff:  %% @doc A loop that gets evaluated while handling process is processing
   %% a request.
   %% @end
  --spec request_processing_loop() -> ok().
  +-spec request_processing_loop() -> ok.
   %% ====================================================================
   request_processing_loop() ->
       SocketProcessPid = get_socket_pid(),
  
positive.code: %% ====================================================================
  %% @doc Convenience function that retrieves the reference to socket pid from process dict.
  %% @end
  -spec get_socket_pid() -> ok().
  %% ====================================================================
  get_socket_pid() ->
      erlang:get(socket_pid).
  
negative.code:     end.
  
  
  %% set_handler_module/1
  %% ====================================================================
  %% @doc Convenience function that stores the reference to handler module in process dict.
  %% @end
  -spec set_handler_module(Module :: atom()) -> term().
  %% ====================================================================
  set_handler_module(Module) ->
      erlang:put(handler_module, Module).
  
  
  %% get_handler_module/0
  %% ====================================================================
  %% @doc Convenience function that retrieves the reference to handler module from process dict.
  %% @end
  -spec get_handler_module() -> atom().
  %% ====================================================================
  get_handler_module() ->
      erlang:get(handler_module).
  
  
  %% set_handler_pid/1
  %% ====================================================================
  %% @doc Convenience function that stores the reference to handler pid in process dict.
  %% @end
  -spec set_handler_pid(Pid :: pid()) -> term().
  %% ====================================================================
  set_handler_pid(Pid) ->
      erlang:put(handler_pid, Pid).
  
  
  %% get_handler_pid/0
  %% ====================================================================
  %% @doc Convenience function that retrieves the reference to handler pid from process dict.
  %% @end
  -spec get_handler_pid() -> pid().
  %% ====================================================================
  get_handler_pid() ->
      erlang:get(handler_pid).
  
  
  %% set_delegation/1
  %% ====================================================================
  %% @doc Convenience function that stores the delegation flag in process dict.
  %% @end
  -spec set_delegation(Delegation :: boolean()) -> term().
  %% ====================================================================
  set_delegation(Delegation) ->
      erlang:put(delegation, Delegation).
  
  
  %% get_delegation/0
  %% ====================================================================
  %% @doc Convenience function that retrieves the delegation flag from process dict.
  %% @end
  -spec get_delegation() -> boolean().
  %% ====================================================================
  get_delegation() ->
      erlang:get(delegation).