anchor.diff:  %% @doc Determine whether or not the resource exists.
   %%      This resource exists if the bucket is known or the object
   %%      was successfully fetched from Riak.
  +resource_exists(ReqData, Context=#ctx{key=schema}) ->
  +    %% schema-creation request, always exists.
  +    {true, ReqData, Context};
   resource_exists(ReqData, Context=#ctx{key=container}) ->
       %% bucket existence was tested in is_authorized
       {true, ReqData, Context};
  
positive.code:         undefined -> Default;
          String    -> list_to_integer(String)
      end.
  
negative.code:                                     W = integer_query("w", 2, ReqData),
                                      DW = integer_query("dw", 2, ReqData),
  				    ok = JiakClient:put(JiakObjectWrite, W, DW),
                                      {ok, RD3, JC3} = Mod:after_write(Key,JiakObject2,RD2,JC2),
                                      {RD4, Context1} =
                                          case proplists:lookup("returnbody", wrq:req_qs(RD1)) of
                                              {"returnbody", "true"} ->
  