public static <T> T supply(final Supplier<T> supplier) {
        if (supplier != null) {
            return supplier.get();
        } else {
            return null;
        }
    }
Return the value supplied by supplier or null if supplier is itself null.
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java