tasks.add(updateList("/Attendances/Types", "Types", AttendanceCategory.class));
tasks.add(updateList("/Grades/Averages", "Averages", Average.class));
tasks.add(updateObject("/LuckyNumbers", "LuckyNumber", LuckyNumber.class));
tasks.add(updateAccount());
tasks.add(updateNearestTimetables());
<BUG>new DefaultDeferredManager().when(tasks.toArray(new Promise[tasks.size()])).done(new DoneCallback<MultipleResults>() {
</BUG>
@Override
public void onDone(MultipleResults result) {
loading = false;

tasks.add(updateList("/Attendances/Types", "Types", AttendanceCategory.class));
tasks.add(updateList("/Grades/Averages", "Averages", Average.class));
tasks.add(updateObject("/LuckyNumbers", "LuckyNumber", LuckyNumber.class));
tasks.add(updateAccount());
tasks.add(updateNearestTimetables());
return new DefaultDeferredManager().when(toArray(tasks, Promise.class)).then(new DoneCallback<MultipleResults>() {
@Override
public void onDone(MultipleResults result) {
loading = false;
