public int getMaxRange(String minMatch, String maxMatch, int dataContentLength) {
    if (maxMatch != null) {
      if (minMatch == null) {
        return dataContentLength;
      } else {
        return Integer.parseInt(maxMatch) + 1;
      }
    } else {
      return dataContentLength;
    }
  }