code: @Deprecated
      public void setEndpoint(String endpoint) throws JMSException {
          try {
              amazonSQSClient.setEndpoint(endpoint);
          } catch (IllegalArgumentException ase) {
              JMSException jmsException = new JMSException(ase.getMessage());
              throw (JMSException) jmsException.initCause(ase);
          }
      }
docs: Sets SQS endpoint and wraps IllegalArgumentException.
  Deprecated. Instead of manipulating settings of existing AmazonSQS client, provide correct configuration when creating it through SQSConnectionFactory constructors.
  
  @param endpoint
  The endpoint (ex: "sqs.us-east-1.amazonaws.com") of the region
  specific AWS endpoint this client will communicate with.
  @throws JMSException