else if (mClassID.Equals(kXULFocusTrackerCID)) { if (NS_FAILED(rv = NS_NewXULFocusTracker((nsIXULFocusTracker**) &inst)))
else if (mClassID.Equals(kXULCommandDispatcherCID)) { if (NS_FAILED(rv = NS_NewXULCommandDispatcher((nsIXULCommandDispatcher**) &inst)))
RDFFactoryImpl::CreateInstance(nsISupports *aOuter,                               const nsIID &aIID,                               void **aResult){    if (! aResult)        return NS_ERROR_NULL_POINTER;        if (aOuter)        return NS_ERROR_NO_AGGREGATION;    *aResult = nsnull;    nsresult rv;    nsISupports *inst = nsnull;    if (mClassID.Equals(kRDFServiceCID)) {        if (NS_FAILED(rv = NS_NewRDFService((nsIRDFService**) &inst)))            return rv;    }    else if (mClassID.Equals(kXULSortServiceCID)) {        if (NS_FAILED(rv = NS_NewXULSortService((nsIXULSortService**) &inst)))            return rv;    }    else if (mClassID.Equals(kXULPopupListenerCID)) {        if (NS_FAILED(rv = NS_NewXULPopupListener((nsIXULPopupListener**) &inst)))            return rv;    }    else if (mClassID.Equals(kXULKeyListenerCID)) {        if (NS_FAILED(rv = NS_NewXULKeyListener((nsIXULKeyListener**) &inst)))            return rv;    }    else if (mClassID.Equals(kXULFocusTrackerCID)) {        if (NS_FAILED(rv = NS_NewXULFocusTracker((nsIXULFocusTracker**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFXMLDataSourceCID)) {        if (NS_FAILED(rv = NS_NewRDFXMLDataSource((nsIRDFDataSource**) &inst)))          return rv;    }    else if (mClassID.Equals(kRDFFileSystemDataSourceCID)) {        if (NS_FAILED(rv = NS_NewRDFFileSystemDataSource((nsIRDFDataSource**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFSearchDataSourceCID)) {        if (NS_FAILED(rv = NS_NewRDFSearchDataSource((nsIRDFDataSource**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFFindDataSourceCID)) {        if (NS_FAILED(rv = NS_NewRDFFindDataSource((nsIRDFDataSource**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFFTPDataSourceCID)) {        if (NS_FAILED(rv = NS_NewRDFFTPDataSource((nsIRDFDataSource**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFCompositeDataSourceCID)) {        if (NS_FAILED(rv = NS_NewRDFCompositeDataSource((nsIRDFCompositeDataSource**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFContainerCID)) {        if (NS_FAILED(rv = NS_NewRDFContainer((nsIRDFContainer**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFContainerUtilsCID)) {        if (NS_FAILED(rv = NS_NewRDFContainerUtils((nsIRDFContainerUtils**) &inst)))            return rv;    }    else if (mClassID.Equals(kXULDocumentCID)) {        if (NS_FAILED(rv = NS_NewXULDocument((nsIRDFDocument**) &inst)))            return rv;    }    else if (mClassID.Equals(kXULDocumentInfoCID)) {        if (NS_FAILED(rv = NS_NewXULDocumentInfo((nsIXULDocumentInfo**) &inst)))            return rv;    }    else if (mClassID.Equals(kXULTemplateBuilderCID)) {        if (NS_FAILED(rv = NS_NewXULTemplateBuilder((nsIRDFContentModelBuilder**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFXULBuilderCID)) {        if (NS_FAILED(rv = NS_NewRDFXULBuilder((nsIRDFContentModelBuilder**) &inst)))            return rv;    }    else if (mClassID.Equals(kRDFContentSinkCID)) {        if (NS_FAILED(rv = NS_NewRDFContentSink((nsIRDFContentSink**) &inst)))            return rv;    }	else if (mClassID.Equals(kXULContentSinkCID)) {        if (NS_FAILED(rv = NS_NewXULContentSink((nsIXULContentSink**) &inst)))            return rv;    }	else if (mClassID.Equals(kRDFDefaultResourceCID)) {        if (NS_FAILED(rv = NS_NewDefaultResource((nsIRDFResource**) &inst)))            return rv;    }    else if (mClassID.Equals(kLocalStoreCID)) {        if (NS_FAILED(rv = NS_NewLocalStore((nsILocalStore**) &inst)))            return rv;    }    else {        return NS_ERROR_NO_INTERFACE;    }    if (! inst)        return NS_ERROR_OUT_OF_MEMORY;    if (NS_FAILED(rv = inst->QueryInterface(aIID, aResult))) {        // We didn't get the right interface.        NS_ERROR("didn't support the interface you wanted");    }    NS_IF_RELEASE(inst);    return rv;}