rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID, nsnull, NS_GET_IID(nsIRDFDataSource), (void**) &mInner);
rv = CallCreateInstance(kRDFInMemoryDataSourceCID, &mInner);
RDFXMLDataSourceImpl::Init(){    nsresult rv;    rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID,                                            nsnull,                                            NS_GET_IID(nsIRDFDataSource),                                            (void**) &mInner);    if (NS_FAILED(rv)) return rv;    // Initialize the name space stuff to know about any "standard"    // namespaces that we want to look the same in all the RDF/XML we    // generate.    //    // XXX this is a bit of a hack, because technically, the document    // should've defined the RDF namespace to be _something_, and we    // should just look at _that_ and use it. Oh well.    nsIAtom* rdfPrefix = NS_NewAtom("RDF");    AddNameSpace(rdfPrefix, NS_ConvertASCIItoUCS2(RDF_NAMESPACE_URI));    NS_IF_RELEASE(rdfPrefix);    if (gRefCnt++ == 0) {        rv = nsServiceManager::GetService(kRDFServiceCID,                                          NS_GET_IID(nsIRDFService),                                          NS_REINTERPRET_CAST(nsISupports**, &gRDFService));        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");        if (NS_FAILED(rv)) return rv;        rv = gRDFService->GetResource(RDF_NAMESPACE_URI "instanceOf", &kRDF_instanceOf);        rv = gRDFService->GetResource(RDF_NAMESPACE_URI "nextVal",    &kRDF_nextVal);        rv = gRDFService->GetResource(RDF_NAMESPACE_URI "Bag",        &kRDF_Bag);        rv = gRDFService->GetResource(RDF_NAMESPACE_URI "Seq",        &kRDF_Seq);        rv = gRDFService->GetResource(RDF_NAMESPACE_URI "Alt",        &kRDF_Alt);        rv = nsServiceManager::GetService(kRDFContainerUtilsCID,                                          NS_GET_IID(nsIRDFContainerUtils),                                          (nsISupports**) &gRDFC);        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get container utils");        if (NS_FAILED(rv)) return rv;    }    return NS_OK;}