this should of course be return results.subList(0, mr); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047924#4047924 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047924