public void destructionOccurred(ResourceDestructionEvent event)
{
Object resourceID = event.getResourceID();
if (resourceID != null)
{
DestructionNotificationDocument destructionNotificationDocument = DestructionNotificationDocument.Factory.newInstance();
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DestructionNotificationDocument.DestructionNotification destructionNotification = destructionNotificationDocument.addNewDestructionNotification();
destructionNotification.setResourceId((String) resourceID);
try
{
publish(buildManagementEvent(destructionNotificationDocument));
}
catch (Exception e)
{
if (LOG.isDebugEnabled())
{
LOG.debug("Publishing of the notification: " + destructionNotificationDocument.toString() + " failed.", e);
}
}
}
}