public string TryLoad(string objectId, string collectionId) { try { var filepath = Path.Combine(storageDirectoryAbsolutePath, collectionId, objectId + ".json"); if (!File.Exists(filepath)) { return(null); } var data = TransactionalFileOps.ReadFileContents(filepath); return(data); } catch (Exception exception) { throw new PersistenceException("Flat File loading failed. See inner exception for details", exception); } }