private void assertCanGetPartialObject() {
        if (!isRangeGetEnabled()) {
            String msg = "Unable to perform range get request: Range get support has been disabled. " +
                "See https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html";
            throw new SecurityException(msg);
        }
    }
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