for (var i = 0; i < this._tasksInMemory.length; i++) {
        if (this._tasksInMemory[i].id == id)
            return this._tasksInMemory[i];
    }