anchor.diff:                         lager:debug("did not find metadata"),
                          Metadata
                  end,
  -    lager:debug("MetaData2: ~p", [Metadata2]),
       CapabilitiesURI = nebula2_utils:get_capabilities_uri(Pid, ObjectName),
       DomainURI = nebula2_utils:get_domain_uri(Pid, ObjectName),
  -    lager:debug("CapabilitiesURI: ~p", [CapabilitiesURI]),
  -    lager:debug("DomainURI: ~p", [DomainURI]),
  -    lager:debug("Oid: ~p", [Oid]),
  -    lager:debug("ObjectName: ~p", [ObjectName]),
  -    lager:debug("ParentUri: ~p", [ParentUri]),
  -    lager:debug("ParentId: ~p", [ParentId]),
  -    lager:debug("Metadata2: ~p", [Metadata2]),
  -%%     {ok, Data2} = cdmi_containers_dtl:render([
  -%%                                {objectType, "application/cdmi-container"},
  -%%                                {objectID, Oid},
  -%%                                {objectName, ObjectName},
  -%%                                {parentID, ParentId},
  -%%                                {parentURI, ParentUri},
  -%%                                {metadata, Metadata2},
  -%%                                {capabilitiesURI, CapabilitiesURI},
  -%%                                {domainURI, DomainURI},
  -%%                                {children, ""},
  -%%                                {childrenrange, ""},
  -%%                                {completionStatus, "Complete"},
  -%%                                {exports, ""},
  -%%                                {percentComplete, ""},
  -%%                                {snapshots, ""}]),
       Data2 = [{<<"objectType">>, <<"application/cdmi-container">>},
                                   {<<"objectID">>, list_to_binary(Oid)},
                                   {<<"objectName">>, list_to_binary(ObjectName)},
  
positive.code:                     [] -> "cdmi/";
                      U  -> "cdmi/" ++ U
                   end,
      lager:debug("new_container URI: ~p", [ObjectName]),
      {ParentUri, ParentId} = case ObjectName of
                                    "cdmi/" -> {"", ""};    %% root has no parent
                                    _Other  -> nebula2_utils:get_parent(Pid, ObjectName)
                              end,
      lager:debug("Parent: ~p ParentID: ~p", [ParentUri, ParentId]),
      {ok, Body, Req2} = cowboy_req:body(Req),
      lager:debug("Body: ~p", [Body]),
      Data = maps:from_list(jsx:decode(Body)),
      lager:debug("Data: ~p", [Data]),
      Metadata = [{<<"cdmi_atime">>, Tstamp},
                  {<<"cdmi_ctime">>, Tstamp},
                  {<<"cdmi_mtime">>, Tstamp},
  
negative.code:                                 {<<"exports">>, <<"">>},
                                  {<<"percentComplete">>, <<"">>},
                                  {<<"snapshots">>, <<"">>}],
      Response = nebula2_riak:put(Pid, ObjectName, Oid, Data2),
      pooler:return_member(riak_pool, Pid),
      {true, Req2, State}.
  
  