public static <M extends Map<K, V>, K, V> Map<K, V> map(final M map) {
        return map != null
                ? map
                : Collections.emptyMap();
    }
Returns the passed map if it is non-null else returns an empty map.
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java