/// <summary>
        /// Load from stream
        /// </summary>
        /// <param name="stream"></param>
        /// <returns></returns>
        private static JsonResourceProvider FromStream(Stream stream)
        {
            Expect.IsNotNull(stream, nameof(stream));

            var text     = EncodingUtil.DefaultEncoding.GetString(stream.ReadToEnd());
            var root     = (JObject)JsonConvert.DeserializeObject(text);
            var provider = new JsonResourceProvider();

            provider.Load(root);
            return(provider);
        }
 /// <summary>
 /// Clear all registered providers
 /// </summary>
 public static void Reset()
 {
     _providers.Clear();
     _providers.Add(JsonResourceProvider.GetPredefined());
 }