// Check if the activity is finished
// If not, schedule a new update task. Else we are done
Activity activity = getActivity();
String start = (activity != null) ? activity.withStatus().getStart() : null;
String updated = (activity != null) ? activity.withStatus().getUpdated() : null;
boolean isFinished = false;
if (start != null && (new DateTime(start)).isBefore(DateTime.now())) {
// start of the event is in the past
isFinished = true;
if (updated != null && (new DateTime(updated)).isAfter(new DateTime(start))) {