             return dateFormatter.stringFromDate(self.scheduledOn).lowercaseString
         }
     }
+    
+    func matchesTaskIdentifier(taskIdentifier: String) -> Bool {
+        return (self.activity.task != nil) && (self.activity.task.identifier == taskIdentifier)
+    }
 }
        // to be able to handle. Currently, that means only taskReference activities with an identifier that
        // maps to a known task.
        self.activities = scheduledActivities.filter({ (schedule) -> Bool in
            return taskReferenceForSchedule(schedule) != nil
        })
        
        // reload table

    }
    
    public func scheduledActivityForTaskIdentifier(taskIdentifier: String) -> SBBScheduledActivity? {
        return activities.findObject({ $0.matchesTaskIdentifier(taskIdentifier) })
    }
    
    public func dequeueReusableCell(tableView: UITableView, indexPath: NSIndexPath) -> UITableViewCell {
