CommandLineParameters params = server.params.clone();
params.build = Lists.newArrayList();
params.build.add(tempDir);
params.inMemory = true;
GraphBuilderTask graphBuilder = new OTPConfigurator(params).builderFromParameters();
graphBuilder.run();
// remove the temporary directory
// this doesn't work for nested directories, but the extract doesn't either,