internal static XDocument GetDocument(IFileSystem fileSystem, string path) { using (Stream configStream = fileSystem.OpenFile(path)) { return XDocument.Load(configStream); } }