private static long countToLong(final Object result) {
        return ((Number) result).longValue();
    }
JPA implementation of a CAS {@link TicketRegistry}. This implementation of
ticket registry is suitable for HA environments.

@author Scott Battaglia
@author Marvin S. Addison
@since 3.2.1
support/cas-server-support-jpa-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/JpaTicketRegistry.java