default Stream<? extends Ticket> getTickets(final Predicate<Ticket> predicate) {
        return stream().filter(predicate);
    }
Gets tickets as a stream having applied a predicate.
<p>
The returning stream may be bound to an IO channel (such as database connection),
so it should be properly closed after usage.

@param predicate the predicate
@return the tickets
api/cas-server-core-api-ticket/src/main/java/org/apereo/cas/ticket/registry/TicketRegistry.java