public void registerElectionStrategy(final PrincipalElectionStrategy factory) {
        this.chain.add(factory);
        AnnotationAwareOrderComparator.sort(this.chain);
    }
Register election strategy.

@param factory the factory
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/ChainingPrincipalElectionStrategy.java