@Override
    public final List<BaseClient> build() {
        return lock.tryLock(() -> {
            val core = casProperties.getAuthn().getPac4j().getCore();
            val currentClients = !core.isLazyInit() || retrieve(casProperties.getServer().getName()).isEmpty()
                ? load()
                : retrieve(casProperties.getServer().getName());
            store(casProperties.getServer().getName(), currentClients);
            return currentClients;
        });
    }
This is {@link BaseDelegatedIdentityProviderFactory}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/clients/BaseDelegatedIdentityProviderFactory.java