@Nullable
    public static Map<LogType, Integer> loadLogCounts(final String geocode) {
        if (StringUtils.isBlank(geocode)) {
            return null;
        }

        return withAccessLock(() -> {


            init();

            final Map<LogType, Integer> logCounts = new EnumMap<>(LogType.class);

            final Cursor cursor = database.query(
                    dbTableLogCount,
                    new String[]{"type", "count"},
                    "geocode = ?",
                    new String[]{geocode},
                    null,
                    null,
                    null,
                    "100");

            while (cursor.moveToNext()) {
                logCounts.put(LogType.getById(cursor.getInt(0)), cursor.getInt(1));
            }

            cursor.close();

            return logCounts;
        });
    }
@return an immutable, non null list of logs
main/src/main/java/cgeo/geocaching/storage/DataStore.java