public static void closeConnection(Connection con) {
        if (con != null) {
            try {
               con.close();
            }
            catch (Exception e) {
                Log.error(e.getMessage(), e);
            }
        }
    }
Closes a database connection (returning the connection to the connection pool). Any
statements associated with the connection should be closed before calling this method.
This method should be called within the finally section of your database logic, as
in the following example:
<pre>
Connection con = null;
try {
    con = ConnectionManager.getConnection();
    ....
}
catch (SQLException sqle) {
    Log.error(sqle.getMessage(), sqle);
}
finally {
    DbConnectionManager.closeConnection(con);
}</pre>

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