return null;
}
}
public static ComputeService createComputeService(CloudDetails details) {
ProviderMetadata selectedProvider = details.getProvider();
ApiMetadata selectedApi = details.getApi();
if (selectedProvider == JClouds.EMPTY_PROVIDER &&
selectedApi == JClouds.EMPTY_API) return null;
String identity = details.getIdentity();
String credential = details.getCredential();
String endpoint = details.getEndpoint();
if (selectedProvider != null && !Strings.isBlank(identity) && !Strings.isBlank(credential)) {
String providerId = selectedProvider.getId();
String owner = details.getOwnerId();
Properties props = new Properties();
props.put("provider", providerId);
props.put(PROPERTY_IDENTITY, identity);