if (l != null && l.size() > 0) AnnotationMapper.fillImageAnnotations(l, map);
if (l == null || l.size() == 0) return map; AnnotationMapper.fillImageAnnotations(l, map);
    public Map getImageAnnotations(int imageID)        throws DSOutOfServiceException, DSAccessException    {        Criteria c = AnnotationMapper.buildImageAnnotationCriteria(imageID);        List l = (List) gateway.retrieveListSTSData("ImageAnnotation", c);        TreeMap map = new TreeMap();        if (l != null && l.size() > 0)             AnnotationMapper.fillImageAnnotations(l, map);        return map;    }