public static void freeCon(Connection con) { try { if (con != null) { con.close(); con = null; } } catch (SQLException sqle) { logger.error("freeCon:", sqle); } }