}
public static ComputeServiceContext build(final ComputeServiceContextFactory factory, final ClusterSpec spec) throws IOException {
Configuration jcloudsConfig =
spec.getConfigurationForKeysWithPrefix("jclouds");
Set<AbstractModule> wiring = ImmutableSet.of(new JschSshClientModule(),
new Log4JLoggingModule(), new BindLoginCredentialsPatchForEC2());
if (spec.getProvider().equals("ec2")){
LOG.warn("please use provider \"aws-ec2\" instead of \"ec2\"");
spec.setProvider("aws-ec2");
}