I'm using POIFS to read and write CustomProperties to the DocumentSummaryInformation. Some word documents only contain a section with formatId D5CDD505-2E9C-101B-9397-08002B2CF9AE, which is the second id in SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID. When I try to create an instance of DocumentSummaryInformation , method isDocumentSummaryInformation in PropertySet returns false, as it only compares the formatId of the section with the first id. This results in a org.apache.poi.hpsf.UnexpectedPropertySetTypeException: Not a org.apache.poi.hpsf.DocumentSummaryInformation.
Is it safe to alter the code so that isDocumentSummaryInformation() also returns true if the id is D5CDD505-2E9C-101B-9397-08002B2CF9AE instead of D5CDD502-2E9C-101B-9397-08002B2CF9AE? I'm using 3.1-Final. thanks in advance, Christer
