try
{
Situation situation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_CREATE ) );
XmlBeansManagementEvent xme = new XmlBeansManagementEvent( situation );
RelationshipCreatedNotificationDocument relationshipCreatedDoc = RelationshipCreatedNotificationDocument.Factory.newInstance();
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipCreatedNotificationDocument.RelationshipCreatedNotification relationshipCreatedNotification = relationshipCreatedDoc.addNewRelationshipCreatedNotification();
relationshipCreatedNotification.setRelationship(((RelationshipDocumentImpl)o).getRelationship());
xme.setAny(new Object[]{relationshipCreatedDoc});
//publish!
createdTopic.publish(xme.getXmlObject());
}