Source:
<code>public boolean validate() { boolean uploadImageIsValid; setIsValid(true); getInvalidityReasons().clear(); getImageInfoModel().getInvalidityReasons().clear(); if (getImageSourceLocalEnabled().getEntity()) { getImagePath().validateEntity(new IValidation[] { new IValidation() { @Override public ValidationResult validate(Object value) { ValidationResult result = new ValidationResult(); if (value == null || StringHelper.isNullOrEmpty((String) value)) { result.setSuccess(false); result.getReasons().add(constants.emptyImagePath()); } return result; } } }); <START> getImageInfoModel().validateEntity(new <END> IValidation[] { new IValidation() { @Override public ValidationResult validate(Object value) { ValidationResult result = new ValidationResult(); ImageInfoModel.QemuCompat qcowCompat = getImageInfoModel().getQcowCompat(); if (qcowCompat != null && qcowCompat != ImageInfoModel.QemuCompat.V2) { StorageFormatType storageFormatType = getDiskModel().getStorageDomain().getSelectedItem().getStorageFormat(); switch (storageFormatType) { case V1: case V2: case V3: result.setSuccess(false); result.getReasons().add(messages.uploadImageQemuCompatUnsupported( qcowCompat.getValue(), storageFormatType.name())); break; } } return result; } } }); uploadImageIsValid = getImagePath().getIsValid() && getImageInfoModel().validate(); getInvalidityReasons().addAll(getImagePath().getInvalidityReasons()); getInvalidityReasons().addAll(getImageInfoModel().getInvalidityReasons()); } else { uploadImageIsValid = false; } return uploadImageIsValid && diskModel.validate(); }</code><technical_language>Hmm I forgot push change :)</technical_language>

Target:
public boolean validate() { boolean uploadImageIsValid; setIsValid(true); getInvalidityReasons().clear(); getImageInfoModel().getInvalidityReasons().clear(); if (getImageSourceLocalEnabled().getEntity()) { getImagePath().validateEntity(new IValidation[] { new IValidation() { @Override public ValidationResult validate(Object value) { ValidationResult result = new ValidationResult(); if (value == null || StringHelper.isNullOrEmpty((String) value)) { result.setSuccess(false); result.getReasons().add(constants.emptyImagePath()); } return result; } } }); if (getImagePath().getIsValid()) { getImageInfoModel().validateEntity(new IValidation[]{ new IValidation() { @Override public ValidationResult validate(Object value) { ValidationResult result = new ValidationResult(); ImageInfoModel.QemuCompat qcowCompat = getImageInfoModel().getQcowCompat(); if (qcowCompat != null && qcowCompat != ImageInfoModel.QemuCompat.V2) { StorageFormatType storageFormatType = getDiskModel().getStorageDomain().getSelectedItem().getStorageFormat(); switch (storageFormatType) { case V1: case V2: case V3: result.setSuccess(false); result.getReasons().add(messages.uploadImageQemuCompatUnsupported( qcowCompat.getValue(), storageFormatType.name())); break; } } return result; } } }); } uploadImageIsValid = getImagePath().getIsValid() && getImageInfoModel().validate(); getInvalidityReasons().addAll(getImagePath().getInvalidityReasons()); getInvalidityReasons().addAll(getImageInfoModel().getInvalidityReasons()); } else { uploadImageIsValid = false; } return uploadImageIsValid && diskModel.validate(); }