if ( _type == NULL || _target == NULL) { return NULL; }
JNIEXPORT jobject JNICALL Java_org_mozilla_pluglet_mozilla_PlugletInstancePeerImpl_newStream    (JNIEnv *env, jobject jthis, jstring _type, jstring _target) {    nsMIMEType mimeType = NULL;    if(!(mimeType = (nsMIMEType)env->GetStringUTFChars(_type,NULL))) {	return NULL;    }    const char * target = NULL;    if(!(target = env->GetStringUTFChars(_target,NULL))) {	env->ReleaseStringUTFChars(_type,(char *)mimeType);	return NULL;    }    nsIPluginInstancePeer * instancePeer = NULL;    if(!(instancePeer = (nsIPluginInstancePeer*)env->GetLongField(jthis, peerFID))) {	env->ReleaseStringUTFChars(_type,(char *)mimeType);	env->ReleaseStringUTFChars(_target,target);	return NULL;    }    nsIOutputStream *output = NULL;    if (NS_FAILED(instancePeer->NewStream(mimeType,target,&output))) {    	env->ReleaseStringUTFChars(_type,(char *)mimeType);	env->ReleaseStringUTFChars(_target,target);	return NULL;    }    env->ReleaseStringUTFChars(_type,(char *)mimeType);    env->ReleaseStringUTFChars(_target,target);    return PlugletOutputStream::GetJObject(env,output);}