// should be compatible with both.
ContextBuilder builder = ContextBuilder
.newBuilder(providerOrApiValue)
.credentials(identityValue, credentialValue)
.modules(ImmutableSet.<Module> of(new SshjSshClientModule(), new Log4JLoggingModule(),
new PropertiesCredentialStore()));
if (!Strings.isNullOrEmpty(endpointValue)) {
builder = builder.endpoint(endpointValue);
}
computeService = builder.build(ComputeServiceContext.class).getComputeService();
} catch (Exception ex) {