@Override
    public void registerPrincipalResolver(final PrincipalResolver principalResolver) {
        registeredPrincipalResolvers.add(principalResolver);
        AnnotationAwareOrderComparator.sortIfNecessary(this.registeredPrincipalResolvers);
    }
This is {@link DefaultPrincipalResolutionExecutionPlan}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/DefaultPrincipalResolutionExecutionPlan.java