anchor.diff:  %% @end
   %%--------------------------------------------------------------------
   terminate(_Reason, #state{session=Session}) ->
  -    exmpp_session:stop(Session),
  -    ok.
  +	exmpp_session:stop(Session),
  +	ok.
   
   %%--------------------------------------------------------------------
   %% @private
  
positive.code: %% @end
  %%--------------------------------------------------------------------
  handle_cast(Msg, State) ->
      lager:debug("### <xmpp> cast: ~p~n", [Msg]),
      {noreply, State}.
  
  %%--------------------------------------------------------------------
  %% @private
  
negative.code: -define(HANDLER, occi_xmpp_rest).
  
  -record(state, {session, 
  				jid,
  				handler,
  				handler_state,
  				exists   = false}).
  
  %%%===================================================================
  %%% API
  %%%===================================================================
  
  start_link(Ref, Props) ->
  	lager:info("Starting XMPP listener: ~p~n", [proplists:get_value(jid, Props)]),
  	application:start(exmpp),
  	occi:ensure_started(epasswd),
  	gen_server:start_link({local, Ref}, ?MODULE, validate_cfg(Props), []).
  
  %%%===================================================================
  %%% gen_server callbacks
  