public virtual XLRTargetNode loadNode(System.Globalization.CultureInfo fileLocale, System.String fileId, System.Globalization.CultureInfo locale, System.String id)
        {
            System.String key = getKey(fileLocale, fileId);
            XLRFile       f   = (XLRFile)filedict[key];

            if (f == null)
            {
                System.String resource = key.replaceAll("\\.", "/") + ".xlr";
                //UPGRADE_ISSUE: Method 'java.lang.ClassLoader.getResource' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javalangClassLoader'"
                //UPGRADE_ISSUE: Method 'java.lang.Class.getClassLoader' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javalangClassgetClassLoader'"
                System.Uri url = GetType().getClassLoader().getResource(resource);

                if (url != null)
                {
                    f             = new XLRFile(this, fileId, url);
                    filedict[key] = f;
                }
            }
            if (f != null)
            {
                f.load();
                XLRMessageNode messageNode = (XLRMessageNode)nodedict[id];
                if (messageNode != null)
                {
                    XLRTargetNode targetNode = messageNode.getTarget(locale.ToString());
                    return(targetNode);
                }
            }

            return(null);
        }
        public virtual ILocalizedText getLocalizedText(System.Globalization.CultureInfo locale, System.String id)
        {
            XLRMessageNode messageNode = (XLRMessageNode)nodedict[id];
            XLRTargetNode  targetNode  = null;

            if (messageNode != null)
            {
                targetNode = messageNode.getTarget(locale.ToString());
            }

            if (targetNode == null)
            {
                targetNode = checkLocales(locale, id);
            }

            if (targetNode == null)
            {
                return(null);
            }

            return(new XLRLocalizedText(this, targetNode));
        }