@Override
    public int compareTo(@Nonnull final RegisteredService other) {
        return Comparator
            .comparingInt(RegisteredService::getEvaluationPriority)
            .thenComparingInt(RegisteredService::getEvaluationOrder)
            .thenComparing(service -> StringUtils.defaultString(service.getName()).toLowerCase(Locale.ENGLISH))
            .thenComparing(RegisteredService::getServiceId)
            .thenComparingLong(RegisteredService::getId)
            .compare(this, other);
    }
The unique identifier for this service.
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/BaseRegisteredService.java