@Override
    public TimeTrackerEntry load() {
        TimeTrackerEntry database;
        if (file.exists()) {
            TimeTracker timeTracker = null;
            try {
                timeTracker = loadTimeTracker();
            } catch (JAXBException e) {
                throw new RuntimeException(e);
            }

            Map<Long, WorklogEntry> worklogEntries = parseTimeTrackerElement(timeTracker.getWorklogs());
            WorklogEntry current = null;
            if (timeTracker.getCurrentWorklog() != null) {
                current = convertWorklogToEntry(timeTracker.getCurrentWorklog());
            }
            database = new TimeTrackerEntry(worklogEntries, current);
        } else {
            database = new TimeTrackerEntry();
        }
        return database;
    }