public static void checkValueInRange(int value, int min, int max, String exceptionMessage) {
    if (value < min || value > max) {
      throw new IllegalArgumentException(exceptionMessage);
    }
  }
Check the given value is in the specific range (min and max).
If outside the range, through IllegalArgumentException using the provided message.
@param value The value to check.
@param min The minimum inclusive.
@param max The maximum inclusive.
@param exceptionMessage The error message if outside the range.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java