public static void closeStatement(ResultSet rs, Statement stmt) {
        closeResultSet(rs);
        closeStatement(stmt);
    }
Closes a statement and a result set. This method should be called within the finally section of
your database logic, as in the following example:

<pre>
 public void doSomething(Connection con) {
     PreparedStatement pstmt = null;
     ResultSet rs = null;
     try {
         pstmt = con.prepareStatement("select * from blah");
         rs = ...
         ....
     }
     catch (SQLException sqle) {
         Log.error(sqle.getMessage(), sqle);
     }
     finally {
         ConnectionManager.closeStatement(rs, pstmt);
     }
} </pre>

@param rs the result set to close
@param stmt the statement.
xmppserver/src/main/java/org/jivesoftware/database/DbConnectionManager.java