private static void adaptCacheCommonsAfterLogging(final Geocache cache, final ILoggingManager loggingManager, @Nullable final LogEntry oldLogEntry, final LogEntry newLogEntry) {

        final IConnector cacheConnector = loggingManager.getConnector();

        //update "found" counter
        final boolean oldIsFound = oldLogEntry != null && oldLogEntry.logType.isFoundLog();
        final boolean newIsFound = newLogEntry.logType.isFoundLog();
        if (cacheConnector instanceof ILogin && oldIsFound != newIsFound) {
            ((ILogin) cacheConnector).increaseCachesFound(newIsFound ? 1 : -1);
        }
        final List<String> attributes = cache.getAttributes();

        // update cache state
        switch (newLogEntry.logType) {
            case WEBCAM_PHOTO_TAKEN:
            case ATTENDED:
            case FOUND_IT:
                cache.setFound(true);
                cache.setVisitedDate(newLogEntry.date);
                break;
            case DIDNT_FIND_IT:
                cache.setDNF(true);
                cache.setVisitedDate(newLogEntry.date);
                break;
            case ARCHIVE:
                cache.setArchived(true);
                break;
            case TEMP_DISABLE_LISTING:
                cache.setDisabled(true);
                break;
            case ENABLE_LISTING:
                cache.setDisabled(false);
                break;
            case NEEDS_MAINTENANCE:
                attributes.add("firstaid_yes");
                cache.setAttributes(attributes);
                break;
            case OWNER_MAINTENANCE:
                attributes.remove("firstaid_yes");
                cache.setAttributes(attributes);
                break;
        }
    }
get title for a log image in the list
main/src/main/java/cgeo/geocaching/log/LogUtils.java