public static <T> Set<T> singletonSet(final T item) {
        return item != null
                ? Collections.singleton(item)
                : Collections.emptySet();
    }
Returns the passed value as a singleton set if non-null, else an empty set
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java