try { switch (prefBranch.getPrefType(prefName)) { case nsIPrefBranch.PREF_BOOL: ret = prefBranch.getBoolPref(prefName); break; case nsIPrefBranch.PREF_INT: ret = prefBranch.getIntPref(prefName); break; case nsIPrefBranch.PREF_STRING: ret = prefBranch.getCharPref(prefName); break; default: ret = defaultValue; break; } } catch (exc) { 
switch (prefBranch.getPrefType(prefName)) { case nsIPrefBranch.PREF_BOOL: ret = prefBranch.getBoolPref(prefName); break; case nsIPrefBranch.PREF_INT: ret = prefBranch.getIntPref(prefName); break; case nsIPrefBranch.PREF_STRING: ret = prefBranch.getCharPref(prefName); break; default: 
function getPref(prefName, defaultValue) {    const nsIPrefBranch = Components.interfaces.nsIPrefBranch;    var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]                               .getService(nsIPrefBranch);    var ret;    try {        switch (prefBranch.getPrefType(prefName)) {        case nsIPrefBranch.PREF_BOOL:            ret = prefBranch.getBoolPref(prefName);            break;        case nsIPrefBranch.PREF_INT:            ret = prefBranch.getIntPref(prefName);            break;        case nsIPrefBranch.PREF_STRING:            ret = prefBranch.getCharPref(prefName);            break;        default:            ret = defaultValue;            break;        }    }    catch (exc) {        ret = defaultValue;    }    log(ret, "getPref(): prefName=" + prefName);    return ret;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/ca9241eb70b9d37b5cc4c031f828e6dcfc7e37e7/calWcapUtils.js/clean/calendar/providers/wcap/calWcapUtils.js