if (theServiceManager->GetService(nsIJVMManager::GetCID(), NS_GET_IID(nsIJVMManager), (void **)&javaManager) == NS_OK) {
if (MRJPlugin::GetService(nsIJVMManager::GetCID(), NS_GET_IID(nsIJVMManager), (void **)&javaManager) == NS_OK) {
NS_IMETHODIMP MessageRunnable::Run(){    nsIJVMManager* javaManager = NULL;    if (theServiceManager->GetService(nsIJVMManager::GetCID(), NS_GET_IID(nsIJVMManager), (void **)&javaManager) == NS_OK) {        JNIEnv* proxyEnv = NULL;        if (javaManager->GetProxyJNI(&proxyEnv) == NS_OK && proxyEnv != NULL)            mMessage->execute(proxyEnv);        NS_RELEASE(javaManager);    }    return NS_OK;}