if(!annotationsView.isWellFormed()) {
return;
}
Optional<Set<OWLAnnotation>> annotations = annotationsView.getValue();
if (annotations.isPresent() && lastSet.isPresent()) {
DispatchServiceManager.get().execute(new SetOntologyAnnotationsAction(getProjectId(), lastSet.get(), annotations.get()), new AsyncCallback<SetOntologyAnnotationsResult>() {
@Override
public void onFailure(Throwable caught) {
MessageBox.alert("There was a problem setting the ontology annotations for this project.");
GWT.log("Problem setting ontology annotations", caught);
}