private static File getRecordingFile(ConnectionRecord record) throws GuacamoleException {

        UUID uuid = record.getUUID();
        if (uuid != null) {
            File recordingFile = new File(HistoryAuthenticationProvider.getRecordingSearchPath(), uuid.toString());
            if (recordingFile.canRead())
                return recordingFile;
        }

        return null;

    }
Returns the file or directory providing recording storage for the given
history record. If no such file or directory exists, or the file cannot
be read, null is returned.

@param record
    The ConnectionRecord whose associated recording storage file
    or directory should be returned.

@return
    A File pointing to the file or directory providing recording storage
    for the given history record, or null if no such file exists.

@throws GuacamoleException
    If the configured path for stored recordings cannot be read.
extensions/guacamole-history-recording-storage/src/main/java/org/apache/guacamole/history/connection/HistoryConnectionRecord.java