rem: memoryCache.wrap(uri, function (cacheCallback) { var promise=libQ.defer();  unirest.get(uri) .end(function(xml) { if(xml.ok) { memoryCache.set(uri,xml); promise.resolve(xml); } else promise.reject(new Error()); });   return promise; }) 
add: .fail(function () { defer.reject(new Error("Cannot list Favourites")); }); 
context:     memoryCache.wrap(uri, function (cacheCallback) {        var promise=libQ.defer();        unirest.get(uri)            .end(function(xml)            {                if(xml.ok)                {                    memoryCache.set(uri,xml);                    promise.resolve(xml);                }                else promise.reject(new Error());            });        return promise;    })
meta: 3465	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3465/8f2f34c69301f73a7aac01293ef777b1425d3659/index.js/clean/app/plugins/music_service/webradio/index.js