A pagination function which simulates the pagination function of Google's search. This demo project is developed under Eclipse + Maven and tested under JBOSS7.