if (NS_FAILED(rv = mInner->Init(uri))) { NS_ERROR( "unable to init mInner"); return rv; }  NS_WITH_SERVICE(nsIRDFContainerUtils, rdfc, kRDFContainerUtilsCID, &rv); if (NS_FAILED(rv)) return rv;
rv = nsServiceManager::GetService( kRDFServiceCID, NS_GET_IID(nsIRDFService), (nsISupports**) &gRDFService ); if (NS_FAILED(rv)) return rv; if ( gRDFService == NULL ) return NS_ERROR_NULL_POINTER;
NS_IMETHODIMP nsWindowMediator::Init(const char* uri){	nsresult rv;	if (NS_FAILED(rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID,	                                                nsnull,	                                                kIRDFDataSourceIID,	                                                (void**) &mInner)))	{		return rv;	}	if (NS_FAILED(rv = mInner->Init(uri)))	{	 	NS_ERROR( "unable to init mInner");		return rv;	}		NS_WITH_SERVICE(nsIRDFContainerUtils, rdfc, kRDFContainerUtilsCID, &rv);	if (NS_FAILED(rv))		return rv;	rv = rdfc->MakeSeq(mInner, kNC_WindowMediatorRoot, NULL );	NS_ASSERTION(NS_SUCCEEDED(rv), "Unable to make NC:WindowMediatorRoot a sequence");	if (NS_FAILED(rv))		return rv;	if ( gRDFService == NULL )		return NS_ERROR_NULL_POINTER;  // register this as a named data source with the RDF service  return gRDFService->RegisterDataSource(this, PR_FALSE);}