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