@Deprecated
    default List<? extends ConnectionRecord> getHistory()
            throws GuacamoleException {
        return Collections.unmodifiableList(new ArrayList<>(getConnectionHistory().asCollection()));
    }
Returns a list of ConnectionRecords representing the usage history
of this Connection, including any active users. ConnectionRecords
in this list will be sorted in descending order of end time (active
connections are first), and then in descending order of start time
(newer connections are first). If connection history tracking is
not implemented this method should throw GuacamoleUnsupportedException.

@deprecated 
    This function has been deprecated in favor of
    {@link getConnectionHistory}, which returns the connection history
    as an ActivityRecordSet that can be easily sorted and filtered.
    While the getHistory() method is provided for API compatibility,
    new implementations should avoid use of this method and, instead,
    implement the getConnectionHistory() method.

@return
    A list of ConnectionRecrods representing the usage history of this
    Connection.

@throws GuacamoleException
    If history tracking is not implemented, if an error occurs while
    reading the history of this connection, or if permission is
    denied.
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Connection.java