public static JsonDocument TryLoadReplicationInformationFromLocalCache(string serverHash) { try { using (var machineStoreForApplication = GetIsolatedStorageFileForReplicationInformation()) { var path = "RavenDB Replication Information For - " + serverHash; if (machineStoreForApplication.GetFileNames(path).Length == 0) return null; using (var stream = new IsolatedStorageFileStream(path, FileMode.Open, machineStoreForApplication)) { return stream.ToJObject().ToJsonDocument(); } } } catch (Exception e) { log.ErrorException("Could not understand the persisted replication information", e); return null; } }