protected void onEditNotes(final String value, String message, String subject, String text) {
if (value != null) {
GWT.log("Editing notes on " + value + " ...", null);
// TODO: THIS NEEDS FIXING
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>() {