ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
pc.newProject();
Workspace workspace = pc.getCurrentWorkspace();
Container container = Lookup.getDefault().lookup(ContainerFactory.class).newContainer();
ImportController importController = Lookup.getDefault().lookup(ImportController.class);
importController.process(container, new DefaultProcessor(), workspace);
//Get a graph model - it exists because we have a workspace
GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();
HierarchicalDirectedGraph g = loadNetwork(n, graphModel,lookupFileName);
//set the preview configuration of the graph