extracted get_paged_resource method