if (port == null) {
try {
lock.lock();
if (port == null) {
logger.debug("preparing...");
AWSECommerceService service = new AWSECommerceService();
service.setHandlerResolver(new AwsHandlerResolver(
secretAccessKey));
AWSECommerceServicePortType port = service
.getAWSECommerceServicePort();
((BindingProvider) port)
.getRequestContext()
.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
endpoint