anchor.diff:      riak_core_claimant:get_bucket_type(Type, undefined, false).
   
   bucket_type_print_status(Type, undefined) ->
  -    io:setopts([{encoding, unicode}]),
       io:format("~ts is not an existing bucket type~n", [Type]);
   bucket_type_print_status(Type, created) ->
  -    io:setopts([{encoding, unicode}]),
       io:format("~ts has been created but cannot be activated yet~n", [Type]);
   bucket_type_print_status(Type, ready) ->
  -    io:setopts([{encoding, unicode}]),
       io:format("~ts has been created and may be activated~n", [Type]);
   bucket_type_print_status(Type, active) ->
  -    io:setopts([{encoding, unicode}]),
       io:format("~ts is active~n", [Type]).
   
   bucket_type_print_props(undefined) ->
  
positive.code:     bucket_type_print_activate_result(Type, riak_core_bucket_type:activate(Type), IsFirst).
  
  bucket_type_print_activate_result(Type, ok, IsFirst) ->
      io:setopts([{encoding, unicode}]),
      io:format("~ts has been activated~n", [Type]),
      case IsFirst of
          true ->
  
negative.code:             ErlProps = [riak_kv_wm_utils:erlify_bucket_prop(P) || P <- Props],
              bucket_type_print_update_result(Type, riak_core_bucket_type:update(Type, ErlProps));
          _ ->
              io:format("Cannot create bucket type ~ts: no props field found in json~n", [Type]),
              error
      end;
  bucket_type_update(Type, _) ->
      io:format("Cannot update bucket type: ~ts: invalid json~n", [Type]),
      error.
  
  bucket_type_print_update_result(Type, ok) ->
      io:format("~ts updated~n", [Type]);
  bucket_type_print_update_result(Type, {error, Reason}) ->
      io:format("Error updating bucket type ~ts: ~p~n", [Type, Reason]),
      error.
  
  