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