rem: getBundle("insufficientWcapVersionError.text", loginTextVars) ); 
add: getWcapBundle("insufficientWcapVersionError.text", loginTextVars) ); 
context:     getServerInfo:    function( uri )    {        loginTextVars = [uri.hostPort];        var loginText;        var wcapVersion;        try {            // currently, xml parsing at an early stage during process startup            // does not work reliably, so use libical parsing for now:            var str = issueSyncRequest(                uri.spec + "version.wcap?fmt-out=text%2Fcalendar" );            var icalRootComp = getIcsService().parseICS( str );            if (icalRootComp == null)                throw new Error("invalid data, expected ical!");            var prop = icalRootComp.getFirstProperty( "PRODID" );            if (prop == null)                throw new Error("missing PRODID!");            loginTextVars.push( prop.value );            var prop = icalRootComp.getFirstProperty( "X-NSCP-SERVERVERSION" );            if (prop == null)                throw new Error("missing X-NSCP-SERVERVERSION!");            loginTextVars.push( prop.value );            var prop = icalRootComp.getFirstProperty( "X-NSCP-WCAPVERSION" );            if (prop == null)                throw new Error("missing X-NSCP-WCAPVERSION!");            wcapVersion = prop.value;            loginTextVars.push( wcapVersion );            //             var xml = issueSyncXMLRequest(//                 uri.spec + "version.wcap?fmt-out=text%2Fxml" );//             wcapVersion = xml.getElementsByTagName(//                 "X-NSCP-WCAPVERSION" ).item(0).textContent;//             if (wcapVersion == undefined || wcapVersion == "")//                 throw new Error("invalid response!");//             serverInfo =//                 ("Server-Info: " +//                  xml.getElementsByTagName(//                      "iCal" ).item(0).attributes.getNamedItem(//                          "prodid" ).value +//                  ", v" + xml.getElementsByTagName(//                      "X-NSCP-SERVERVERSION" ).item(0).textContent +//                  ", WCAP v" + wcapVersion);                    }        catch (exc) {            this.log( "error: " + exc );            return null;        }        if (parseInt(wcapVersion) < 2.0) {            this.log( "parsed server WCAP major: " + parseInt(wcapVersion) );            throw new Error(                getBundle("insufficientWcapVersionError.text", loginTextVars) );        }        return getBundle().formatStringFromName(            "loginDialog.text", loginTextVars, loginTextVars.length );    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/000dbb3912afd1c84fa9078804c6f61a85add764/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js