ContextBuilder.newBuilder(iaas.getProvider())
.credentials(iaas.getIdentity(), iaas.getCredential()).modules(modules)
.overrides(properties);
// set the compute service object
iaas.setComputeService(builder.buildView(ComputeServiceContext.class).getComputeService());
}
public static String extractRegion(IaasProvider iaas) {
String region;
// try to find region