@Override
    public void populateAttributes(final AuthenticationBuilder builder, final AuthenticationTransaction transaction) {
        if (builder.hasAttribute(AuthenticationManager.AUTHENTICATION_METHOD_ATTRIBUTE,
            obj -> obj.toString().equals(authenticationHandler.getName()))) {
            StringUtils.commaDelimitedListToSet(authenticationContextAttribute).forEach(attribute ->
                builder.mergeAttribute(attribute, authenticationContextAttributeValue));
        }
    }
This is {@link AuthenticationContextAttributeMetaDataPopulator}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/metadata/AuthenticationContextAttributeMetaDataPopulator.java