Add example for Pagination in Java Code

fendor commented :

Well, how could you use it in java code? Is there some builtin support by the library?
Or do I have to implement it myself via queries and invoke them repeatedly with different parameters?