public static void fastcloseStmt(ResultSet rs, PreparedStatement pstmt) throws SQLException
    {
        rs.close();
        pstmt.close();
    }
Closes a statement and a result set. This method should be called within the try section of
your database logic when you reuse a statement. It may throw an exception,
so don't place it in the finally section.<br>
Example:

<pre>
 public void doSomething(Connection con) {
     PreparedStatement pstmt = null;
     try {
         pstmt = con.prepareStatement("select * from blah");
         rs = pstmt.executeQuery();
         ...
         ConnectionManager.fastcloseStmt(rs, pstmt);
         pstmt = con.prepareStatement("select * from blah");
         ...
     }
     ...
} </pre>

@param rs The result set to close
@param pstmt the statement to close.
@throws SQLException if an exception occurs closing the result set or statement
xmppserver/src/main/java/org/jivesoftware/database/DbConnectionManager.java