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: 
      Suffix4 = case ns_bucket:storage_mode(BucketConfig) of
                    couchstore ->
                        [{replicaIndex, proplists:get_value(replica_index, BucketConfig, true)} | Suffix3];
                    _ ->
                        Suffix3
                end,
  
negative.code:     end.
  
  add_couch_api_base(BucketName, BucketUUID, KV, Node, LocalAddr) ->
      NodesKeysList = [{Node, couchApiBase}, {{ssl, Node}, couchApiBaseHTTPS}],
  
      lists:foldl(fun({N, Key}, KVAcc) ->
                          case capi_utils:capi_bucket_url_bin(N, BucketName,
                                                              BucketUUID, LocalAddr) of
                              undefined ->
                                  KVAcc;
                              Url ->
                                  {ok, BCfg} = ns_bucket:get_bucket(BucketName),
                                  case ns_bucket:storage_mode(BCfg) of
                                      couchstore ->
                                          [{Key, Url} | KVAcc];
                                      _ ->
                                          KVAcc
                                  end
                          end
                  end, KV, NodesKeysList).
  
  %% Used while building the bucket info. This transforms the internal
  %% representation of bucket types to externally known bucket types.
  