}
}
private void throwRelationshipDeletedNotif(XmlObject copiedRelationship)
{
Topic deletedTopic = getDeletedTopic();
if(deletedTopic != null)
{
//if its there then build a notif and publish
try
{
Situation situation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_DESTROY ) );
XmlBeansManagementEvent xme = new XmlBeansManagementEvent( situation );
RelationshipDeletedNotificationDocument relationshipDeletedDoc = RelationshipDeletedNotificationDocument.Factory.newInstance();
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDeletedNotificationDocument.RelationshipDeletedNotification relationshipDeletedNotification = relationshipDeletedDoc.addNewRelationshipDeletedNotification();
relationshipDeletedNotification.setRelationship(((RelationshipDocumentImpl)copiedRelationship).getRelationship());
xme.setAny(new Object[]{relationshipDeletedDoc});
//publish!
deletedTopic.publish(xme.getXmlObject());
}
catch (Exception e)
{
LOG.debug("Unable to throw RelationshipDeleted notification. Cause:" + e.getLocalizedMessage(), e);
}