public static <T> T returnValueThrowOnNull(final T value, final RuntimeException e) {
    if (value == null) {
      throw e;
    }
    return value;
  }
The ValidationUtils class is a utility class for performing validations.
<p>

@since GemFire 8.0
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/util/ValidationUtils.java