public static <K, V> Map<K, V> wrap(final String key, final Object value,
                                        final String key2, final Object value2,
                                        final String key3, final Object value3,
                                        final String key4, final Object value4) {
        val m = wrap(key, value, key2, value2, key3, value3);
        if (value4 != null && StringUtils.isNotBlank(key4)) {
            m.put(key4, value4);
        }
        return (Map) m;
    }
Wrap map.

@param <K>    the type parameter
@param <V>    the type parameter
@param key    the key
@param value  the value
@param key2   the key 2
@param value2 the value 2
@param key3   the key 3
@param value3 the value 3
@param key4   the key 4
@param value4 the value 4
@return the map
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CollectionUtils.java