code: private int checkMax(int delta) {
          if (outputByteCount + delta > ContentCryptoScheme.MAX_GCM_BYTES) {
              securityViolated = true;
              throw new SecurityException(
                      "Number of bytes processed has exceeded the maximum allowed by AES/GCM; [outputByteCount="
                              + outputByteCount + ", delta=" + delta + "]");
          }
          return delta;
      }
docs: Returns the input delta but only if it will not result in exceeding the
  limit of the maximum number of bytes that can be processed by AES/GCM.
  
  @throws SecurityException
  if the number of bytes processed has exceeded the maximum
  allowed by AES/GCM.