@Override
    public ZonedDateTime toMaximumExpirationTime(final Ticket ticketState) {
        val result = getExpirationPolicyFor((AuthenticationAwareTicket) ticketState);
        return result.map(policy -> policy.toMaximumExpirationTime(ticketState))
            .orElseGet(() -> ZonedDateTime.now(Clock.systemUTC()));
    }
Add policy.

@param name   the name
@param policy the policy
@return the base delegating expiration policy
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/expiration/BaseDelegatingExpirationPolicy.java