rem: const nsIPrefBranch = Components.interfaces.nsIPrefBranch; var prefBranch =Components.classes["@mozilla.org/preferences-service;1"] .getService(nsIPrefBranch); 
context: function getPref(prefName, defaultValue){    try {        const nsIPrefBranch = Components.interfaces.nsIPrefBranch;        var prefBranch =Components.classes["@mozilla.org/preferences-service;1"]                        .getService(nsIPrefBranch);        switch (prefBranch.getPrefType(prefName)) {        case nsIPrefBranch.PREF_BOOL:            return prefBranch.getBoolPref(prefName);        case nsIPrefBranch.PREF_INT:            return prefBranch.getIntPref(prefName);        case nsIPrefBranch.PREF_STRING:            return prefBranch.getCharPref(prefName);        default:            return defaultValue;        }    }    catch (exc) {        return defaultValue;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3ec7df67da7493c97782a7b0485052b09cd6a64e/calWcapUtils.js/buggy/calendar/providers/wcap/calWcapUtils.js