use shared newDocumentResponse function for return document methods