inst = CreateJavaXPCOMInstance(cm, &NS_GET_IID(nsIComponentManager));
rv = CreateJavaXPCOMInstance(cm, &NS_GET_IID(nsIComponentManager), &inst);
XPCOM_NATIVE(getComponentManager) (JNIEnv *env, jclass){  jobject java_stub = nsnull;  // Call XPCOM method  nsIComponentManager* cm = nsnull;  nsresult rv = NS_GetComponentManager(&cm);  if (NS_SUCCEEDED(rv)) {    // wrap xpcom instance    JavaXPCOMInstance* inst;    inst = CreateJavaXPCOMInstance(cm, &NS_GET_IID(nsIComponentManager));    NS_RELEASE(cm);   // JavaXPCOMInstance has owning ref    if (inst) {      // create java stub      java_stub = CreateJavaWrapper(env, "nsIComponentManager");      if (java_stub) {        // Associate XPCOM object w/ Java stub        AddJavaXPCOMBinding(env, java_stub, inst);      }    }  }  if (java_stub == nsnull)    ThrowXPCOMException(env, rv, "Failure in getComponentManager");  return java_stub;}