final HierarchicalGraph graphView = result;
new Thread(new Runnable() {
public void run() {
ProgressTicketProvider progressProvider = Lookup.getDefault().lookup(ProgressTicketProvider.class);
ProgressTicket ticket = null;
if (progressProvider != null) {
ticket = progressProvider.createTicket("Export to workspace", null);
}
Progress.start(ticket);
ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
Workspace newWorkspace = pc.duplicateWorkspace(pc.getCurrentWorkspace());
GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel(newWorkspace);