public static <T> Set<T> wrapSet(final T source) {
        val list = new LinkedHashSet<T>();
        if (source != null) {
            list.add(source);
        }
        return list;
    }
Wrap set set.

@param <T>    the type parameter
@param source the source
@return the set
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CollectionUtils.java