# File lib/scrubyt/core/shared/evaluation_context.rb, line 41
    def generate_next_page_link(uri_builder)
      return nil unless uri_builder.next_page_pattern.filters[0].generate_XPath_for_example(true)
      xpath = uri_builder.next_page_pattern.filters[0].xpath
      node = (@extractor.get_hpricot_doc/xpath).map.last
      node = XPathUtils.find_nearest_node_with_attribute(node, 'href')
      return nil if node == nil || node.attributes['href'] == nil
      node.attributes['href'].gsub('&') {'&'}
    end