Just FYI, I generally do the following in this sort of code:
1.  put the declaration of resultSet first
2.  put variable declarations close to where they are used (or all together