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_nativeCopyCurrentSelectionToSystemClipboard(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->CopySelection(); }