public static <T> T ensureNonNullResult(final T value,
                                            final String msg,
                                            final Object... args) {
        if (value == null) {
            throw new NotFoundException(LogUtil.message(msg, args));
        }
        return value;
    }
Ensure value is non null or throw a {@link NotFoundException}. For use in validating
responses.
stroom-util/src/main/java/stroom/util/rest/RestUtil.java