}
for (Future<List<Resource>> future : futures) {
try {
resourceSet.addAll(future.get());
} catch (Exception e) {
throw new BuildStackFailureException(e.getMessage(), e, resourceSet);
}
}
LOGGER.info("Publishing {} event.", ReactorConfig.ADD_INSTANCES_COMPLETE_EVENT);
reactor.notify(ReactorConfig.ADD_INSTANCES_COMPLETE_EVENT,
Event.wrap(new AddInstancesComplete(cloudPlatform, stack.getId(), resourceSet)));