class BusinessObjectDataRetryStoragePolicyTransitionHelper {

    protected void sendStoragePolicySelectionSqsMessage(String sqsQueueName, StoragePolicySelection storagePolicySelection)
    {
        // Send the storage policy selection to the relative AWS SQS queue.
        AwsParamsDto awsParamsDto = awsHelper.getAwsParamsDto();
        String messageText = null;
        try
        {
            messageText = jsonHelper.objectToJson(storagePolicySelection);
            sqsDao.sendMessage(awsParamsDto, sqsQueueName, messageText, null);
        }
        catch (RuntimeException e)
        {
            LOGGER.error("Failed to publish message to the JMS queue. jmsQueueName=\"{}\" jmsMessagePayload={}", sqsQueueName, messageText);

            // Rethrow the original exception.
            throw e;
        }
    }

}