ImageData i = (ImageData) it.next(); c.linkImage((Image) mapper.map(i));
ImageData id = (ImageData) it.next(); Image i = (Image) mapper.map( id ); if ( ! linked( i.findCategoryImageLink( c ))) c.linkImage( i );
    public IObject fillIObject( IObject obj, ReverseModelMapper mapper)    {        if ( obj instanceof Category)        {            Category c = (Category) obj;                        if (super.fill(c)) {                c.setName(this.getName());                c.setDescription(this.getDescription());                c.linkCategoryGroup((CategoryGroup) mapper.map(this.getGroup()));                if (this.getImages() != null) {                    for (Iterator it = this.getImages().iterator(); it.hasNext();)                    {                        ImageData i = (ImageData) it.next();                        c.linkImage((Image) mapper.map(i));                    }                }            }            return c;                } else {                        throw new IllegalArgumentException(                    "CategoryData can only fill Category.");                    }            }