@Override public String getId() { return task != null ? task.getId() : (app.getId() + "-failed-" + new Random().nextInt()); }