for (Entry<InstanceTemplate, ClusterActionEvent> entry : eventMap.entrySet()) {
final InstanceTemplate instanceTemplate = entry.getKey();
final ClusterSpec clusterSpec = entry.getValue().getClusterSpec();
StatementBuilder statementBuilder = entry.getValue().getStatementBuilder();
ComputeServiceContext computeServiceContext =
ComputeServiceContextBuilder.build(clusterSpec);
final ComputeService computeService =
computeServiceContext.getComputeService();
final Template template = buildTemplate(clusterSpec, computeService,
statementBuilder, entry.getValue().getTemplateBuilderStrategy());
Future<Set<? extends NodeMetadata>> nodesFuture = executorService.submit(
new Callable<Set<? extends NodeMetadata>>() {