public Map<?, Future<Void>> execute(String group, int count, Template template, Set<NodeMetadata> goodNodes,
Map<NodeMetadata, Exception> badNodes, Multimap<NodeMetadata, CustomizationResponse> customizationResponses) {
IBMSmartCloudTemplateOptions options = template.getOptions().as(IBMSmartCloudTemplateOptions.class);
if (options.shouldAutomaticallyCreateKeyPair() && options.getKeyPair() == null) {
Key key = createNewKey(group);
options.keyPair(key.getName());
credentialsMap.put(key.getName(), key.getKeyMaterial());
}
return super.execute(group, count, template, goodNodes, badNodes, customizationResponses);
}