static ExpirationPolicy buildExpirationPolicy(final ExpirationPolicyBuilder expirationPolicyBuilder,
                                                  final Map<String, Serializable> properties) {
        var expirationPolicy = expirationPolicyBuilder.buildTicketExpirationPolicy();
        if (properties.containsKey(ExpirationPolicy.class.getName())) {
            expirationPolicy = (ExpirationPolicy) properties.remove(ExpirationPolicy.class.getName());
        }
        return expirationPolicy;
    }
Build expiration policy expiration policy.

@param expirationPolicyBuilder the expiration policy builder
@param properties              the properties
@return the expiration policy
api/cas-server-core-api-ticket/src/main/java/org/apereo/cas/ticket/TransientSessionTicketFactory.java