protected void setAttribute(final LdapEntry entry, final Supplier<String> attribute,
                                final Consumer<String> attributeSetter) {
        val attributeName = attribute.get();
        if (entry.getAttribute(attributeName) != null) {
            val attributeValue = entry.getAttribute(attributeName).getStringValue();
            attributeSetter.accept(attributeValue);
        }
    }
This is {@link LdapPasswordlessUserAccountStore}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-passwordless-ldap/src/main/java/org/apereo/cas/impl/account/LdapPasswordlessUserAccountStore.java