if (endpoint != null && !endpoint.isEmpty()) {
builder = builder.endpoint(endpoint);
}
builder = builder.credentials(identity, credential);
builder = builder.overrides(props);
builder = builder.modules(ImmutableSet.<Module>of(new ManagementLifecycle(BaseManagementContext.INSTANCE)));
builder = builder.name(providerId).modules(ImmutableSet.<Module>of(new Log4JLoggingModule(), new SshjSshClientModule()));
ComputeServiceContext context = builder.build(ComputeServiceContext.class);