@Override
    public Optional<AttributeDefinition> locateAttributeDefinitionByName(final String name) {
        return attributeDefinitions
            .values()
            .stream()
            .filter(entry -> StringUtils.isNotBlank(entry.getName()))
            .filter(entry -> entry.getName().equalsIgnoreCase(name))
            .findFirst();
    }
Register attribute definitions.

@param entries the entries
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/attribute/DefaultAttributeDefinitionStore.java