private ActivityLog.Type getType(File file) {

        if (isSessionRecording(file))
            return ActivityLog.Type.GUACAMOLE_SESSION_RECORDING;

        if (isTypescript(file))
            return ActivityLog.Type.TYPESCRIPT;

        if (isTypescriptTiming(file))
            return ActivityLog.Type.TYPESCRIPT_TIMING;

        return ActivityLog.Type.SERVER_LOG;

    }
Returns the type of session recording or log contained within the given
file by inspecting its name and contents.

@param file
    The file to test.

@return
    The type of session recording or log contained within the given
    file, or null if this cannot be determined.
extensions/guacamole-history-recording-storage/src/main/java/org/apache/guacamole/history/connection/HistoryConnectionRecord.java