/** * Wraps NotesDocument into NotesXspDocument. * @param doc document to wrap * @return NotesXspDocument */ function wrapDocument(doc: NotesDocument): NotesXspDocument { return com.ibm.xsp.model.domino.wrapped.DominoDocument.wrap(doc.getParentDatabase().getFilePath(), doc, null, null, false, null); }