public static <T> T returnValueThrowOnNull(final T value, final String message,
      final Object... args) {
    return returnValueThrowOnNull(value, new NullPointerException(String.format(message, args)));
  }
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