public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof ImageRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "ImageRepresentation"));
}
super.populate(rep);
ImageRepresentation irep = (ImageRepresentation) rep;
this.altText = irep.getAltText();
this.url = irep.getUrl();
this.id = irep.getId();
saveI18nMap(irep.getI18n());
if (this.altText == null || "".equals(this.altText)) {
String i18nAltText = getI18n("default");
if (i18nAltText != null) {
this.altText = i18nAltText;
}