public void onClick(ClickEvent event) {
FormValidation validation = form.validate();
if(!validation.hasErrors())
{
Interface entity = form.getUpdatedEntity();
// otherwise the validation rejects it as unmodified
Map<String,Object> changedValues = form.getChangedValues();
changedValues.put("name", entity.getName());
changedValues.put("inetAddress", entity.getInetAddress());
changedValues.put("addressWildcard", entity.getAddressWildcard());
errorMessages.setHTML("");
ValidationResult result = presenter.validateInterfaceConstraints(entity, changedValues);