externalClient = awsClient;
externalClient.validateConnection();
try {
awsClient.createBucket(outboundConfiguration);
} catch (IllegalStateException e) { //thrown when a bucket name is already taken
throw new InvalidOutboundConfigurationException(e.getMessage(), e);
}
} else if (outboundConfiguration.getProtocol().equals("webhdfs")) {
externalClient = new WebHDFSClient(outboundConfiguration);
externalClient.validateConnection();
}