getFavorites:function(type) {
        if(!type && !this.type) {
            throw new Error('The object type is not specified.');
        }
        type = type ? type : this.type;