@Override
public void onClick(ClickEvent event) {
Form<ClusterConnection> actualForm = form.getForm();
FormValidation validation = actualForm .validate();
if(!validation.hasErrors()) {
ClusterConnection entity = actualForm.getUpdatedEntity();
presenter.onCreateClusterConnection(entity);
}
}
},