Search and pagination framework for Java web application