final Map<String, AsyncFuture<ModelNode>> finalResults = new HashMap<String, AsyncFuture<ModelNode>>();
final HostControllerUpdateTask.ProxyOperationListener listener = new HostControllerUpdateTask.ProxyOperationListener();
for (Map.Entry<String, ProxyController> entry : hostProxies.entrySet()) {
// Create the proxy task
final String host = entry.getKey();
final TransformingProxyController proxyController = (TransformingProxyController) entry.getValue();
final HostControllerUpdateTask task = new HostControllerUpdateTask(host, operation.clone(), context, proxyController);
// Execute the operation on the remote host
final AsyncFuture<ModelNode> finalResult = task.execute(listener);
finalResults.put(host, finalResult);
}