rem: 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) { 
add: 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: 
context: 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;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/ca9241eb70b9d37b5cc4c031f828e6dcfc7e37e7/calWcapUtils.js/clean/calendar/providers/wcap/calWcapUtils.js