Integer numThreads = context.getInteger(NUM_THREADS, 3);
String instanceType = context.getString(INSTANCE_TYPE, "c1.xlarge");
CloudComputeService cloudComputeService = new CloudComputeService(apiKey, accessKey,
instanceType, groupName, imageId, keyPair, securityGroup, maxBid);
CloudExecutionContextProvider service = new CloudExecutionContextProvider(
dataDir, numHosts, cloudComputeService, new SSHCommandExecutor(LOG), workingDirectory,
privateKey, user, localDirs, numThreads, 60, maxHostsPerCreateRequest);
return service;
}