}
if (!properties.containsKey("jclouds.aws.accesskeyid"))
properties.put("jclouds.aws.accesskeyid", config.getAwsAccessKey());
if (!properties.containsKey("jclouds.aws.secretaccesskey"))
properties.put("jclouds.aws.secretaccesskey", config.getAwsSecretKey());
this.s3Service = S3ConnectionFactory.getConnection(properties, new S3HttpNioConnectionPoolClientModule());
if (this.s3Service == null) {
throw new S3ConnectionException("Could not connect");
}
} catch (Exception ex) {