nsIRDFResource *aResource = (nsIRDFResource *) JS_GetPrivate(cx, jsaResource);
nsIRDFService_UnregisterResource(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIRDFService *priv = (nsIRDFService *)JS_GetPrivate(cx, obj);  if (!priv)    return JS_TRUE;  nsIRDFResource *aResource;  if (!JS_ConvertArguments(cx, argc, argv, "o", &aResource))    return JS_FALSE;  nsresult rv = priv->UnregisterResource(aResource);  if (NS_FAILED(rv)) {    JS_ReportError(cx, XXXnsresult2string(rv));    return JS_FALSE;  }  return JS_TRUE;}