8687888990919293949596
setPhotoWithThumb(form, photo, false); if (form.getId() == 0) { strategy.add(photo); } else { strategy.refresh(photo); } } finally { strategy.close(); }