private BaseXHTMLFileV3 GetIDParentDocument(EPubFileV3 file, IHTMLItem value) { if ((file.AnnotationPage != null) && file.AnnotationPage.PartOfDocument(value)) { return file.AnnotationPage; } return file.GetIDOfParentDocument(value) as BaseXHTMLFileV3; }