anchor.diff:          true ->
               ReqUUID = list_to_binary(ReqUUID0),
               UUID = get_uuid(),
  -
  +            %%
  +            %% get_uuid() will return empty UUID if the system is not
  +            %% provisioned yet. If ReqUUID is also empty then we let
  +            %% the request go through. But, if ReqUUID is not-empty
  +            %% and UUID is empty then we will retrun 404 error.
  +            %%
               case ReqUUID =:= UUID of
                   true ->
                       erlang:apply(F, Args ++ [Req]);
  
positive.code: format_MB(X) ->
      integer_to_list(misc:ceiling(X / 1024 / 1024)) ++ "MB".
  
  
  handle_pools(Req) ->
      UUID = get_uuid(),
  
      Pools = [{struct,
                [{name, <<"default">>},
                 {uri, <<"/pools/default?uuid=", UUID/binary>>},
                 {streamingUri, <<"/poolsStreaming/default?uuid=", UUID/binary>>}]}],
      EffectivePools =
          case ns_config_auth:is_system_provisioned() of
              true -> Pools;
              _ -> []
          end,
      ReadOnlyAdmin = menelaus_auth:is_under_role(Req, ro_admin),
      Admin = ReadOnlyAdmin orelse menelaus_auth:is_under_role(Req, admin),
      reply_json(Req,{struct, [{pools, EffectivePools},
                               {isAdminCreds, Admin},
                               {isROAdminCreds, ReadOnlyAdmin},
                               {isEnterprise, cluster_compat_mode:is_enterprise()},
                               {settings,
                                {struct,
                                 [{<<"maxParallelIndexers">>,
                                   <<"/settings/maxParallelIndexers?uuid=", UUID/binary>>},
                                  {<<"viewUpdateDaemon">>,
                                   <<"/settings/viewUpdateDaemon?uuid=", UUID/binary>>}]}},
                               {uuid, UUID}
                               | menelaus_web_cache:versions_response()]}).
  
  handle_engage_cluster2(Req) ->
      Body = Req:recv_body(),
  
negative.code:     end,
      exit(normal).
  
  %% Returns an UUID from the ns_config
  %% cluster UUID is set in ns_config only when the system is provisioned.
  get_uuid() ->
      case ns_config:search(uuid) of
          false ->
              <<>>;
          {value, Uuid2} ->
              Uuid2
      end.
  
  handle_versions(Req) ->
      reply_json(Req, {struct, menelaus_web_cache:versions_response()}).
  