@Override
    public Stream<? extends CasEvent> getEventsOfType(final String type) {
        return load().filter(event -> event.getType().equals(type));
    }
Field name to track principal linked to the event.
core/cas-server-core-events-api/src/main/java/org/apereo/cas/support/events/dao/AbstractCasEventRepository.java