protected boolean isRangeGetEnabled() {
        CryptoRangeGetMode rangeGetMode = cryptoConfig.getRangeGetMode();

        switch (rangeGetMode) {
            case ALL:
                return true;
            case DISABLED:
            default:
                return false;
        }
    }
Asserts that the specified parameter value is not null and if it is,
throws an IllegalArgumentException with the specified error message.

@param parameterValue
           The parameter value being checked.
@param errorMessage
           The error message to include in the IllegalArgumentException
           if the specified parameter is null.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/v2/S3CryptoModuleAE.java