@Deprecated
    default List<? extends ActivityRecord> getHistory() throws GuacamoleException {
        return Collections.unmodifiableList(new ArrayList<>(getUserHistory().asCollection()));
    }
Returns a list of ActivityRecords representing the login history
of this user, including any active sessions. ActivityRecords
in this list will be sorted in descending order of end time (active
sessions are first), and then in descending order of start time
(newer sessions are first). If user login history is not implemented
this method should throw GuacamoleUnsupportedException.

@deprecated
    This function is deprecated in favor of {@link getUserHistory}, which
    returns the login history as an ActivityRecordSet which supports
    various sort and filter functions. While this continues to be defined
    for API compatibility, new implementation should avoid this function
    and use getUserHistory(), instead.

@return
    A list of ActivityRecords representing the login history of this
    User.

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