protected static void putAttributeInCache(final Map<String, Object> cacheKey, final String attr, final Object value) {
        val hexed = new DigestUtils(SHA_512).digestAsHex(value.toString());
        cacheKey.put(hexed, value);
    }
Gets the hash of the key elements from the seed {@link Map}. The key elements are specified by
the {@code cacheKeyAttributes} {@link Set} or if it is {@code null} the
{@code defaultAttributeName} is used as the key attribute.

@param seed Seed
@return Hash of key elements from the seed
support/cas-server-support-person-directory-core/src/main/java/org/apereo/cas/persondir/cache/AttributeBasedCacheKeyGenerator.java