if (!gIsInitialized) { nsCOMPtr<nsINameSpaceManager> nsmgr = do_GetService(kNameSpaceManagerCID);  NS_ASSERTION(nsmgr, "unable to get namespace manager"); if (!nsmgr) return;  #define XUL_NAMESPACE_URI \ "http:  nsmgr->RegisterNameSpace(NS_ConvertASCIItoUCS2(XUL_NAMESPACE_URI), kNameSpaceID_XUL);  gIsInitialized = PR_TRUE; }
XULElementFactoryImpl::XULElementFactoryImpl(){    NS_INIT_ISUPPORTS();    if (!gIsInitialized) {        nsCOMPtr<nsINameSpaceManager> nsmgr =            do_GetService(kNameSpaceManagerCID);        NS_ASSERTION(nsmgr, "unable to get namespace manager");        if (!nsmgr)            return;#define XUL_NAMESPACE_URI \    "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"        nsmgr->RegisterNameSpace(NS_ConvertASCIItoUCS2(XUL_NAMESPACE_URI),                                 kNameSpaceID_XUL);        gIsInitialized = PR_TRUE;    }}