code: public static void pushMessages(String queueURL, List<String> messages) {
  		if (!StringUtils.isBlank(queueURL) && messages != null) {
  			// only allow strings - ie JSON
  			try {
  				int	j = 0;
  				List<SendMessageBatchRequestEntry> msgs = new ArrayList<>(MAX_MESSAGES);
  				for (int i = 0; i < messages.size(); i++) {
  					String message = messages.get(i);
  					if (!StringUtils.isBlank(message)) {
  						msgs.add(new SendMessageBatchRequestEntry().
  								withMessageBody(message).
  								withId(Integer.toString(i)));
  					}
  					if (++j >= MAX_MESSAGES || i == messages.size() - 1) {
  						if (!msgs.isEmpty()) {
  							getClient().sendMessageBatch(queueURL, msgs);
  							msgs.clear();
  						}
  						j = 0;
  					}
  				}
  			} catch (AmazonServiceException ase) {
  				logException(ase);
  			} catch (AmazonClientException ace) {
  				logger.error("Could not reach SQS. {}", ace.toString());
  			}
  		}
  	}
docs: Pushes a number of messages in batch to an SQS queue.
  @param queueURL the URL of the SQS queue
  @param messages the massage bodies