@Override
    public Collection<Class> getRegisteredClasses() {
        return this.registeredClasses.stream()
            .sorted(Comparator.comparingInt(Pair::getValue))
            .map(Pair::getKey)
            .collect(Collectors.toSet());
    }
This is {@link DefaultComponentSerializationPlan}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/DefaultComponentSerializationPlan.java