public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof VideoRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "VideoRepresentation"));
}
super.populate(rep);
VideoRepresentation vrep = (VideoRepresentation) rep;
this.videoUrl = vrep.getVideoUrl();
this.cssClassName = vrep.getCssClassName();
this.id = vrep.getId();
this.dataType = vrep.getDataType();
populate(this.video);
}