protected ResponseEntity buildResponse(final Ticket ticketInCache) {
        return ticketInCache != null
            ? ResponseEntity.ok(ticketInCache)
            : ResponseEntity.notFound().build();
    }
Fetch ticket and return response entity.

@param ticketId the ticket id
@return the response entity
support/cas-server-support-redis-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/RedisTicketRegistryCacheEndpoint.java