Iterator entries = elements.entrySet().iterator();
Query query = getPMI().newQuery("oql", "rsort($1, key)"); Collection eColl = (Collection) query.execute(elements.entrySet()); Iterator entries = eColl.iterator(); List toDelete = new ArrayList();
    public boolean retainAll(Collection coll) {        boolean modified = false;        Iterator entries = elements.entrySet().iterator();        while (entries.hasNext()) {            Map.Entry entry = (Map.Entry) entries.next();            if (!coll.contains(entry.getValue())) {                modified = true;                m_remove((Integer) entry.getKey());            }        }        return modified;    }