}
if (failedNodes.size() > 0) {
Image image = new ImageImpl("ec2", "test", "testId", location, new URI("http://node"),
userMetadata, ImmutableSet.<String>of(), new OperatingSystem(null, null, null, null, "op", true),
"description", null, null, loginCredentials);
Hardware hardware = new HardwareImpl("ec2", "test", "testId", location, new URI("http://node"),
userMetadata, ImmutableSet.<String>of(), new ArrayList<Processor>(), 1,
new ArrayList<Volume>(), null);
Template template = new TemplateImpl(image, hardware, location, TemplateOptions.NONE);
throw new RunNodesException("tag" + id, num, template, nodes, executionExceptions, failedNodes);
}