NoteEditorDialogController controller = new NoteEditorDialogController(new NoteContentEditorHandler() {
@Override
public void handleAccept(Optional<NoteContent> noteContent) {
if (noteContent.isPresent()) {
OWLEntity entity = DataFactory.getOWLClass(value);
DispatchServiceManager.get().execute(new AddNoteToEntityAction(getProjectId(), entity, noteContent.get()), new AsyncCallback<AddNoteToEntityResult>() {
@Override
public void onFailure(Throwable caught) {
}
@Override