Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID);
Map ids = AnnotationMapper.reverseListImageAnnotations(annotations);
    public static void fillImageAnnotationInCategory(Map map, List annotations,                                                     int userID)    {        Map ids = AnnotationMapper.reverseListImageAnnotations(annotations,                                                             userID);        Iterator i = map.keySet().iterator();        ImageSummary is;        while (i.hasNext()) {            is = (ImageSummary) i.next();            is.setAnnotation(AnnotationMapper.fillImageAnnotation(                    (ImageAnnotation) ids.get(new Integer(is.getID()))));        }    }