@Transactional
    public Journal getOrCreateJournal(String name, Date date) {
        Journal journal = journalsDao.getByName(name);
        if (journal != null) {
            Date startDate = dateService.getStartOfDay(date);
            Date endDate = dateService.getNextDay(date);
            journal.setTasks(tasksDao.getActiveForPeriod(journal, startDate, endDate));

            return journal;
        }

        return createJournal(name);
    }