{
NotificationMessage notificationMessage = new NotificationMessage("Publishing notification failed", "Publication", "SYSTEM", NotificationMessage.LIVE_NOTIFICATION_QUEUED, "" + publicMessage.get("0.objectId"), "" + deliverUrl);
TransactionHistoryController.getController().create(notificationMessage);
logger.error("Error updating cache at " + address + ":" + e.getMessage() + ". Adding it to the queue-thread.");
PublicationQueueBean pqb = new PublicationQueueBean();
pqb.setUrlAddress(address);
pqb.setRequestParameters(publicMessage);
pqb.setSerializedParameters(toEncodedString(publicMessage));
PublicationQueue.getPublicationQueue().addPublicationQueueBean(deliverUrl, pqb);
}
}
}
}