@SuppressWarnings("EnumOrdinal")
        @Override
        public int compareTo(final @NonNull ServiceWrapper<T> other) {
            return Comparator.<ServiceWrapper<T>>comparingInt(
                            wrapper -> wrapper.isDefaultImplementation()
                                    ? Integer.MIN_VALUE
                                    : Integer.MAX_VALUE).thenComparingInt(wrapper -> wrapper.executionOrder.ordinal())
                    .thenComparingInt(wrapper -> wrapper.registrationOrder).compare(this, other);
        }
Used to store {@link Service} implementations together with their state

@param <T> Service type
cloud-services/src/main/java/org/incendo/cloud/services/ServiceRepository.java