jsobject js_obj = Unwrap_JSObject(env, java_wrapper_obj); jobject member = NULL; GetSlotMessage msg(js_obj, slot, &member); sendMessage(env, &msg);  if (member != NULL) member = ToLocalRef(env, member);
MRJPluginInstance* pluginInstance = GetCurrentInstance(env); if (pluginInstance == NULL) { env->ThrowNew(env->FindClass("java/lang/NullPointerException"), "illegal JNIEnv (can't find plugin)"); return NULL; }  jsobject js_obj = Unwrap_JSObject(env, java_wrapper_obj); jobject member = NULL;  GetSlotMessage msg(pluginInstance, js_obj, slot, &member); sendMessage(env, &msg);   if (member != NULL) member = ToLocalRef(env, member);
Java_netscape_javascript_JSObject_getSlot(JNIEnv* env,                                          jobject java_wrapper_obj,                                          jint slot){	jsobject js_obj = Unwrap_JSObject(env, java_wrapper_obj);	jobject member = NULL;	GetSlotMessage msg(js_obj, slot, &member);	sendMessage(env, &msg);	// convert the resulting reference back to a local reference.	if (member != NULL)		member = ToLocalRef(env, member);    return member;}