Constructor<WorkEditor> constructor = editorClass.getConstructor(Shell.class);
WorkEditor editor = constructor.newInstance(getViewer().getControl().getShell());
editor.setWorkDefinition(workDefinition);
WorkItemNode workItemNode = getWorkItemWrapper().getWorkItemNode();
editor.setWork(workItemNode.getWork());
boolean result = editor.show();
return result ? editor.getWork() : null;
} finally {
Thread.currentThread().setContextClassLoader(oldLoader);
}
} catch (Exception e) {