anchor.diff:        fun handle_apns_error/2,
         fun handle_uninstall/1) of
       {ok, _} ->
  +      erlstatsd:increment("pusherman.apns-connected", 1, 1.0),
         lager:info("Connected to apple",[]), ok;
       {error, {already_started, _}} ->
         lager:info("Already connected to apple",[]),
  
positive.code:     P -> 
        lager:debug("about to send ~p",[P]),
        ensure_started(),
        apns:send_message(?APPLE_CONNECTION, P), self() ! dequeue
    end,
    {noreply,State}.
  
  
negative.code: 
  %% @hidden
  -spec code_change(term(), state(), term()) -> {ok, state(), pos_integer()}.
  code_change(_OldVsn, State, _Extra) -> {ok, State}.
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %% Private functions
  