private KadTask lookupTaskToKadTask(LookupTask task) {
KadTask kad_task = new KadTask();
if (task.getRequestType() == RequestType.FIND_NODE) {
kad_task.task_type = _._("mainwindow.kadtab.node_lookup");
Search search = _jkad.getSearch();
SearchTask search_task = search.getSearchTask(task.getTargetID());
if (search_task==null) return null;
kad_task.task_info = Utils.KadFileIDToFileName(search_task.getSearchID());
}
if (task.getRequestType() == RequestType.FIND_VALUE) {
kad_task.task_type = _._("mainwindow.kadtab.keyword_search");
Search search = _jkad.getSearch();
SearchTask search_task = search.getSearchTask(task.getTargetID());
if (search_task==null) return null;
if (search_task instanceof NoteSearchTask) {
//TODO : Add note
return null;
}