public static void closeConnection(Statement stmt, Connection con) {
        closeStatement(stmt);
        closeConnection(con);
    }
Closes a statement and database connection (returning the connection to
the connection pool). This method should be called within the finally section of
your database logic, as in the following example:
<pre>
Connection con = null;
PrepatedStatment pstmt = null;
try {
    con = ConnectionManager.getConnection();
    pstmt = con.prepareStatement("select * from blah");
    ....
}
catch (SQLException sqle) {
    Log.error(sqle.getMessage(), sqle);
}
finally {
    DbConnectionManager.closeConnection(pstmt, con);
}</pre>

@param stmt the statement.
@param con the connection.
xmppserver/src/main/java/org/jivesoftware/database/DbConnectionManager.java