if (!searchEntries.containsKey(key)){ searchEntries.put(key, searchEntry);
if (!mapping.containsKey(key)){ mapping.put(key, searchEntry); entries.add(searchEntry); setChanged(true);
    public void addSearchEntry(SearchEntry searchEntry){        MapSetStringKey key = new MapSetStringKey(searchEntry.getId());        if (!searchEntries.containsKey(key)){            searchEntries.put(key, searchEntry);        }        else{            SearchEntry searchEntryOld = (SearchEntry)searchEntries.get(key);            FileName[] fileNames = searchEntry.getFileNames();            for (int i=0; i<fileNames.length; i++){                searchEntryOld.addFileName(fileNames[i]);            }        }    }