Add getDocumentHandle method