private boolean resolveRange(long totalSize) {
      boolean failure = false;
      try {
        if (options != null && options.getBlobOptions.getRange() != null) {
          resolvedByteRange = options.getBlobOptions.getRange()
              .toResolvedByteRange(totalSize, options.getBlobOptions.resolveRangeOnEmptyBlob());
        }
      } catch (IllegalArgumentException e) {
        onInvalidRange(e);
        failure = true;
      }
      return failure;
    }
Resolves range to be served
@param totalSize total size of the chunk
@return {@code true} if range resolution failed. {@code true} otherwise
ambry-router/src/main/java/com/github/ambry/router/GetBlobOperation.java