@Override
    public void populateAttributes(final AuthenticationBuilder builder, final AuthenticationTransaction transaction) {
        transaction.getPrimaryCredential().ifPresent(clientCredential -> {
            val credentials = (ClientCredential) clientCredential;
            builder.addAttribute(ClientCredential.AUTHENTICATION_ATTRIBUTE_CLIENT_NAME, credentials.getClientName());
        });
    }
This class is a meta data populator for authentication. The client name associated to the authentication is added
to the authentication attributes.

@author Jerome Leleu
@since 3.5.0
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientAuthenticationMetaDataPopulator.java