public AmazonSimpleDB getSdbClient() {
return configuration.getAmazonSDBClient() != null ? configuration.getAmazonSDBClient() : createSdbClient();
}
AmazonSimpleDB createSdbClient() {
AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
AmazonSimpleDB client = new AmazonSimpleDBClient(credentials);
if (configuration.getAmazonSdbEndpoint() != null) {
client.setEndpoint(configuration.getAmazonSdbEndpoint());
}
configuration.setAmazonSDBClient(client);