DialogueOptions options = new DialogueOptions(
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
FormValidation validation = form.validate();
if (!validation.hasErrors()) {
if (originalIdentifier != null)
presenter.onDeleteCapability(originalIdentifier);
presenter.onAddCapability(form.getUpdatedEntity());
}