webMethods 10.1 How to do Pagination in Flow Service

I have a task which requires to call a REST EndPoint.
And the response of that REST need to be stored in ESB and need to create REST EndPoints against that data to share the same data as paginated.

I am just looking for any sample which might be available for a similar case.

And importantly wanted to know is this feasible to achieve pagination in ESB webMethods side?