if (NS_FAILED(rv))  { initContext->initFailCode = kGetContentViewerError; ::util_ThrowExceptionToJava(env, "Exception: cant get ContentViewer from DocShell"); return; }
JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeSelectAll(JNIEnv * env, jobject obj, jint webShellPtr){        WebShellInitContext* initContext = (WebShellInitContext *) webShellPtr;        nsIContentViewer* contentViewer ;        nsresult rv = nsnull;        rv = initContext->docShell->GetContentViewer(&contentViewer);        nsCOMPtr<nsIContentViewerEdit> contentViewerEdit(do_QueryInterface(contentViewer));        rv = contentViewerEdit->SelectAll();        if (NS_FAILED(rv)) {            ::util_ThrowExceptionToJava(env, "Exception: can't do SelectAll through contentViewerEdit");        }}