::util_ThrowExceptionToJava(initContext->env, errorMessages[initContext->initFailCode]);
::util_ThrowExceptionToJava(env, errorMessages[initContext->initFailCode]);
JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_NativeEventThread_nativeInitialize(JNIEnv *env, jobject obj, jint webShellPtr){    nsresult rv = NS_ERROR_FAILURE;    WebShellInitContext * initContext = (WebShellInitContext *) webShellPtr;    if (nsnull == initContext) {	    ::util_ThrowExceptionToJava(env,                                     "NULL webShellPtr passed to nativeInitialize.");        return;    }    if (nsnull == gVm) { // declared in jni_util.h        env->GetJavaVM(&gVm);  // save this vm reference    }    rv = InitMozillaStuff(initContext);    if (NS_FAILED(rv)) {	    ::util_ThrowExceptionToJava(env,                                     errorMessages[initContext->initFailCode]);        return;    }    while (initContext->initComplete == FALSE) {                ::PR_Sleep(PR_INTERVAL_NO_WAIT);                if (initContext->initFailCode != 0) {            ::util_ThrowExceptionToJava(initContext->env, errorMessages[initContext->initFailCode]);            return;        }    }}