));
result.get(weekStart.plusDays(1)).add(newArrayList(
withLessonNumber(substitutionLesson(), 7)
));
result.get(weekStart.plusDays(2)).remove(2);
<BUG>return CompletableFuture.completedFuture(result);
}</BUG>
private ImmutableJsonLesson withLessonNumber(ImmutableJsonLesson lesson, int lessonNo) {
List<PlainLesson> plainLessons = repository.getList(PlainLesson.class);
PlainLesson plainLesson = plainLessons.get(lessonNo % plainLessons.size());

));
result.get(weekStart.plusDays(1)).add(newArrayList(
withLessonNumber(substitutionLesson(), 7)
));
result.get(weekStart.plusDays(2)).remove(2);
return Single.just(result);
}
private ImmutableJsonLesson withLessonNumber(ImmutableJsonLesson lesson, int lessonNo) {
List<PlainLesson> plainLessons = repository.getList(PlainLesson.class);
PlainLesson plainLesson = plainLessons.get(lessonNo % plainLessons.size());
