nativeContainer = env->GetIntField(obj, nativeContainerFieldID);
Java_org_mozilla_webclient_wrapper_1native_RDFEnumeration_nativeFinalize(JNIEnv *env, jobject obj){    jclass objClass;    jfieldID nativeEnumFieldID;    jfieldID nativeContainerFieldID;    jint nativeEnum, nativeContainer;        objClass = env->GetObjectClass(obj);    if (nsnull == objClass) {        printf("nativeFinalize: Can't get object class for RDFEnumeration.\n");        return;    }    // release the nsISimpleEnumerator    nativeEnumFieldID = env->GetFieldID(objClass, "nativeEnum", "I");    if (nsnull == nativeEnumFieldID) {        printf("nativeFinalize: Can't get fieldID for nativeEnum.\n");        return;    }    nativeEnum = env->GetIntField(obj, nativeEnumFieldID);    nsCOMPtr<nsISimpleEnumerator> enumerator =         (nsISimpleEnumerator *) nativeEnum;    ((nsISupports *)enumerator.get())->Release();        // release the nsIRDFContainer    nativeContainerFieldID = env->GetFieldID(objClass, "nativeContainer", "I");    if (nsnull == nativeContainerFieldID) {        printf("nativeFinalize: Can't get fieldID for nativeContainer.\n");        return;    }    nativeContainer = env->GetIntField(obj, nativeContainerFieldID);    nsCOMPtr<nsIRDFContainer> container =         (nsIRDFContainer *) nativeContainer;    ((nsISupports *)container.get())->Release();    return;}