@VisibleForTesting
  String resolveNextPageUrl(String sourceOffset) throws ELEvalException {
    String url;
    if (LINK_PAGINATION.contains(conf.pagination.mode) && next != null) {
      url = next.getUri().toString();
      setResolvedUrl(url);
    } else if (conf.pagination.mode == PaginationMode.BY_OFFSET || conf.pagination.mode == PaginationMode.BY_PAGE) {
      if (sourceOffset != null) {
        setPageOffset(sourceOffset);
      }
      url = resourceEval.eval(resourceVars, conf.resourceUrl, String.class);
    } else {
      url = getResolvedUrl();
    }
    return url;
  }
@ VisibleForTesting String resolveNextPageUrl ( String sourceOffset ) throws ELEvalException { String url ; if ( LINK_PAGINATION . contains ( conf . pagination . mode ) && next != null ) { url = next . getUri ( ) . toString ( ) ; setResolvedUrl ( url ) ; } else if ( conf . pagination . mode == PaginationMode . BY_OFFSET || conf . pagination . mode == PaginationMode . BY_PAGE ) { if ( sourceOffset != null ) { setPageOffset ( sourceOffset ) ; } url = resourceEval . eval ( resourceVars , conf . resourceUrl , String . class ) ; } else { url = getResolvedUrl ( ) ; } return url ; }
Returns the URL of the next page to fetch when paging is enabled. Otherwise
returns the previously configured URL.

@param sourceOffset current source offset
@return next URL to fetch
@throws ELEvalException if the resource expression cannot be evaluated