anchor.diff:      {next_state, waiting_update_command, State#state{riak_object=undefined, manifests=undefined}}.
   
   
  -%%--------------------------------------------------------------------
  -%% @private
  -%% @doc
  -%% There should be one instance of this function for each possible
  -%% state name. Whenever a gen_fsm receives an event sent using
  -%% gen_fsm:sync_send_event/[2,3], the instance of this function with
  -%% the same name as the current state name StateName is called to
  -%% handle the event.
  -%%
  -%% @spec state_name(Event, From, State) ->
  -%%                   {next_state, NextStateName, NextState} |
  -%%                   {next_state, NextStateName, NextState, Timeout} |
  -%%                   {reply, Reply, NextStateName, NextState} |
  -%%                   {reply, Reply, NextStateName, NextState, Timeout} |
  -%%                   {stop, Reason, NewState} |
  -%%                   {stop, Reason, Reply, NewState}
  -%% @end
  -%%--------------------------------------------------------------------
   waiting_command(get_active_manifest, _From, State) ->
       {Reply, NewState} = active_manifest(State),
       {reply, Reply, waiting_update_command, NewState};
  
positive.code: %%% gen_fsm callbacks
  %%%===================================================================
  
  %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Whenever a gen_fsm is started using gen_fsm:start/[3,4] or
  %% gen_fsm:start_link/[3,4], this function is called by the new
  %% process to initialize.
  %%
  %% @spec init(Args) -> {ok, StateName, State} |
  %%                     {ok, StateName, State, Timeout} |
  %%                     ignore |
  %%                     {stop, StopReason}
  %% @end
  %%--------------------------------------------------------------------
  init([Bucket, Key, RiakPid]) ->
      process_flag(trap_exit, true),
      {ok, waiting_command, #state{bucket=Bucket,
  
negative.code:     {reply, Reply, waiting_update_command, State#state{riak_object=undefined,
                                                         manifests=undefined}}.
  
  handle_event(_Event, StateName, State) ->
      {next_state, StateName, State}.
  
  handle_sync_event(stop, _From, _StateName, State) ->
      Reply = ok,
      {stop, normal, Reply, State}.
  
  handle_info(_Info, StateName, State) ->
      {next_state, StateName, State}.
  
  terminate(_Reason, _StateName, _State) ->
      ok.
  
  code_change(_OldVsn, StateName, State, _Extra) ->
      {ok, StateName, State}.
  
  