if (hasPaginatedAnnotation(routeContext.getRoute())) {
final Map<String, Object> requestArgs = extractArguments(routeContext, consumers);
final PaginationInfo paginationInfo = pagingStrategy.createPaginationInfo(routeContext, requestArgs);
final Object[] args = pagingStrategy.preInvocation(paginationInfo, requestArgs);
final Collection<?> results = (Collection<?>) endpointInvoker.invoke(routeContext, args);
return new InvocationResult(pagingStrategy.postInvocation(results, routeContext, paginationInfo), routeContext);
} else {
return delegate.process(routeContext);
}
}