conn.commit();
    public int prune(Map interests)    {        Connection conn = null;        try        {            conn = DatabaseManager.getConnection();            long now = System.currentTimeMillis();            int count = 0;            for (Iterator iter = interests.keySet().iterator(); iter.hasNext();)            {                String result = (String) iter.next();                Long dur = (Long) interests.get(result);                count += deleteHistoryByDateAndCode(new Date(now                        - dur.longValue()), result, conn);            }            return count;        }        catch (SQLException e)        {            LOG.error("Problem pruning results: " + e.getMessage(), e);            throw new RuntimeException("Problem pruning results: "                    + e.getMessage(), e);        }        finally        {            DatabaseManager.freeConnection(conn);        }    }