Use availability check by method
Use error code
Add cursor and ResultSet.next to iterate queries with paging state