if (userID != classification.getModuleExecution().getExperimenter().getID()) break;
    public static Object[] fillICGHierarchy(List classifications, Map mapIS,                                             int userID)    {        Object[] results = new Object[2];        Iterator i = classifications.iterator();        //OME-JAVA object.        Classification classification;        Category category;        CategoryGroup group;        //Shoola object.        ClassificationData cData;        CategoryData cModel;        CategoryGroupData gModel;        ImageSummary is;        Map categoryMap = new HashMap(), groupMap = new HashMap(),             classificationsMap;        float f;        Integer categoryID, groupID;        Collection unclassifiedImages = mapIS.values();        List classifiedImages = new ArrayList();        List categoriesList;        while (i.hasNext()) {            classification = (Classification) i.next();            if (userID !=                 classification.getModuleExecution().getExperimenter().getID())                break;            f = CategoryMapper.CONFIDENCE;            if (classification.getConfidence() != null)                f =  classification.getConfidence().floatValue();            is = (ImageSummary) mapIS.get(                    new Integer(classification.getImage().getID()));                       if (!classifiedImages.contains(is))                 classifiedImages.add(is);                        cData = new ClassificationData(classification.getID(), f);            category = classification.getCategory();            group = category.getCategoryGroup();            groupID = new Integer(group.getID());            gModel = (CategoryGroupData) groupMap.get(groupID);            //Create CategoryGroupData            if (gModel == null) {                gModel = CategoryMapper.buildCategoryGroup(group);                gModel.setCategories(new ArrayList());                groupMap.put(groupID, gModel);            }                        categoryID = new Integer(category.getID());            cModel = (CategoryData) categoryMap.get(categoryID);            //Create CategoryData            if (cModel == null) {                cModel = CategoryMapper.buildCategoryData(category, gModel);                cModel.setClassifications(new HashMap());                categoryMap.put(categoryID, cModel);                gModel.getCategories();            }              categoriesList = gModel.getCategories();            if (!categoriesList.contains(cModel))                categoriesList.add(cModel);                        classificationsMap = cModel.getClassifications();            classificationsMap.put(is.copyObject(), cData);        }        unclassifiedImages.removeAll(classifiedImages);        results[0] = unclassifiedImages;        results[1] = groupMap.values();        return results;    }