Added bean pagination to jaxrs endpoint