imagesDiff.remove(isg); }
toRemove.add(isg); }
	Set getImagesDiff(pojos.DatasetData data, Map filters, Map complexFilters)	{        Set imagesDiff = new HashSet();        try {            imagesDiff = getImportedImages(filters, complexFilters);             pojos.ImageData isg;            Iterator i = imagesDiff.iterator();            Set images = data.getImages();            Iterator j;            while (i.hasNext()) {                isg = (pojos.ImageData) i.next();                   j = images.iterator();                while (j.hasNext()) {                    if (((pojos.ImageData) j.next()).getId() == isg.getId())                          imagesDiff.remove(isg);                 }                            }        } catch(DSAccessException dsae) {            String s = "Can't retrieve user's images.";            getRegistry().getLogger().error(this, s+" Error: "+dsae);            getRegistry().getUserNotifier().notifyError("Data Retrieval " +                    "Failure", s, dsae);           }         return imagesDiff;        /*		List imagesDiff = new ArrayList();        try {            imagesDiff = getImportedImages(filters, complexFilters);               Set images = data.getImages();            pojos.ImageData isg;            Iterator i;            for (int j = 0; j < imagesDiff.size(); j++) {                isg = (pojos.ImageData) imagesDiff.get(j);                i = images.iterator();                while (i.hasNext()) {                    if (((pojos.ImageData) i.next()).getId() == isg.getId())                          imagesDiff.remove(isg);                 }            }        } catch(DSAccessException dsae) {            String s = "Can't retrieve user's images.";            getRegistry().getLogger().error(this, s+" Error: "+dsae);            getRegistry().getUserNotifier().notifyError("Data Retrieval " +                    "Failure", s, dsae);           } 		return imagesDiff;        */	}