if (sqsAnswer.isPresent()) {
Object message = sqsAnswer.get().getMessage();
if (message instanceof OneTimeTask) {
LOG.debug("Deserialized message: " + message);
OneTimeTask task = (OneTimeTask) message;
try {
if (task.getTaskTimeout() != null) {
queue.setMessageVisibilityTimeout(sqsAnswer.get(), task.getTaskTimeout());
}
new ExecuteWithRequestContext(task).execute();
queue.deleteMessage(sqsAnswer.get());