Overriding the default endpoint for AmazonSQS client

 Overriding the default endpoint for AmazonSQS client ("sqs.us-east-1.amazonaws.com") with hostname taken from queueUrl attribute. This allows you to connect to the queues in any region.

More info:
http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/sqs/AmazonSQS.html#setEndpoint(java.lang.String)