@Override public PropertyValidationResult validate(Entity entity, Serializable instance, Map<String, FieldMetadata> entityFieldMetadata, Map<String, String> validationConfiguration, BasicFieldMetadata propertyMetadata, String propertyName, String value) { if (value == null) { return new PropertyValidationResult(succeedForNullValues); } Property theProp = entity.getPMap().get(propertyName); if (theProp != null && theProp.getIsDirty()) { if (!sandboxService.checkForExistingApprovalSandboxWithName(value)) { return new PropertyValidationResult(false, ERROR_DUPLICATE_SANDBOX_NAME); } } return new PropertyValidationResult(true); }