public static <T> boolean isEmptyString(final T value,
                                            final Function<T, String> stringGetter) {
        if (value == null) {
            return true;
        } else {
            final String str = Objects.requireNonNull(stringGetter).apply(value);
            return str == null || str.isEmpty();
        }
    }
@return True if value is null or the string property is null or empty
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java