public DocumentEntry CreateDocument(NPOIFSDocument document) { try { DocumentProperty property = document.DocumentProperty; DocumentNode rval = new DocumentNode(property, this); ((DirectoryProperty)Property).AddChild(property); _nFilesSystem.AddDocument(document); _entries.Add(rval); _byname[property.Name] = rval; return(rval); } catch (IOException ex) { throw ex; } }