This method of the IWebBrowser2 interface retrieves a pointer to the IDispatch interface of the Active Document object.
public java.lang.Object getDocument();