public static <T1, T2, R> R get(final T1 value,
                                    final Function<T1, T2> getter1,
                                    final Function<T2, R> getter2) {
        if (value == null) {
            return null;
        } else {
            final T2 value2 = Objects.requireNonNull(getter1).apply(value);
            if (value2 == null) {
                return null;
            } else {
                return Objects.requireNonNull(getter2).apply(value2);
            }
        }
    }
Apply getter to value if value is non-null.

@return The result of applying getter to value if value is non-null, else null.
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java