anchor.diff:      StatsUri = bin_concat_path(["pools", "default", "buckets", Id, "stats"]),
       StatsDirectoryUri = iolist_to_binary([StatsUri, <<"Directory">>]),
       NodeStatsListURI = bin_concat_path(["pools", "default", "buckets", Id, "nodes"]),
  -    DDocsURI = bin_concat_path(["pools", "default", "buckets", Id, "ddocs"]),
       BucketCaps = build_bucket_capabilities(BucketConfig),
   
       MaybeBucketUUID = proplists:get_value(uuid, BucketConfig),
  
positive.code:     end.
  
  add_couch_api_base(BucketName, BucketUUID, KV, Node, LocalAddr) ->
      KV1 = case capi_utils:capi_bucket_url_bin(Node, BucketName, BucketUUID, LocalAddr) of
                undefined -> KV;
                CapiBucketUrl ->
                    [{couchApiBase, CapiBucketUrl} | KV]
            end,
      case capi_utils:capi_bucket_url_bin({ssl, Node}, BucketName, BucketUUID, LocalAddr) of
          undefined -> KV1;
          CapiSSLBucketUrl ->
              [{couchApiBaseHTTPS, CapiSSLBucketUrl} | KV1]
      end.
  
  %% Used while building the bucket info. This transforms the internal
  %% representation of bucket types to externally known bucket types.
  
negative.code: 
      Suffix4 = case ns_bucket:storage_mode(BucketConfig) of
                    couchstore ->
                        DDocsURI = bin_concat_path(["pools", "default", "buckets",
                                                    Id, "ddocs"]),
                        [{ddocs, {struct, [{uri, DDocsURI}]}},
                         {replicaIndex, proplists:get_value(replica_index, BucketConfig, true)}
                         | Suffix3];
                    _ ->
                        Suffix3
                end,
  