Instead of returning a list, return a resultset