public RazorDocument Load(Stream stream) { var source = _documentSources.FirstOrDefault(x => x.CanLoad(stream)); if (source == null) throw new RazorDocumentSourceNotFoundException(); return source.Load(stream); }