if (null == imgIds || imgIds.size() == 0) { return new HashSet(); }
    public Set findCGCPaths(Set imgIds, boolean contained) {    	List l = containerDao.findCGCPaths(imgIds,contained);    	Set<CategoryGroup> s = new HashSet<CategoryGroup>(l);    	for (CategoryGroup cg : s){    		for (Object o : cg.getCategories()){    			Category c = (Category) o;    			c.setClassifications(null);    		}    	}    	return s;    }