}
void MessageRunnable::execute(JNIEnv* env){    // because a spontaneous Java thread called us, we have to switch to the JavaScript thread    // to handle this request.    nsIThreadManager* threadManager = NULL;    if (theServiceManager->GetService(nsIJVMManager::GetCID(), NS_GET_IID(nsIThreadManager), (void **)&threadManager) == NS_OK) {        threadManager->PostEvent(mThreadID, this, PR_FALSE);        NS_RELEASE(threadManager);    }}