timeslotRepo.findAll() .stream() .filter(timeslot->timeslot.getEndDate()==null) .first() .ifPresentOrElse(()->{}, ()->{new Timeslot(DateTime.now())})