code: @Deprecated
      public void setRegion(Region region) throws JMSException {
          try {
              amazonSQSClient.setRegion(region);
          } catch (IllegalArgumentException ase) {
              JMSException jmsException = new JMSException(ase.getMessage());
              throw (JMSException) jmsException.initCause(ase);
          }
      }
docs: Sets SQS region and wraps <code>IllegalArgumentException</code>.
  Deprecated. Instead of manipulating settings of existing AmazonSQS client, provide correct configuration when creating it through SQSConnectionFactory constructors.
  
  @param region
  The region this client will communicate with. See
  {@link Region#getRegion(com.amazonaws.regions.Regions)} for
  accessing a given region.
  @throws JMSException