*
* @param event
*/
public void creationOccurred(ResourceCreationEvent event)
{
CreationNotificationDocument creationNotificationDocument = CreationNotificationDocument.Factory.newInstance();
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CreationNotificationDocument.CreationNotification creationNotification = creationNotificationDocument.addNewCreationNotification();
EndpointReference endpointReference = event.getEndpointReference();
if(endpointReference != null && endpointReference instanceof XmlBeansEndpointReference)
{
XmlBeansEndpointReference xmlepr = (XmlBeansEndpointReference)endpointReference;
XmlObject xmlObject = xmlepr.getXmlObject(org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA);
if(xmlObject instanceof EndpointReferenceType)
{
creationNotification.setManageabilityEndpointReferenceArray(new EndpointReferenceType[]{(EndpointReferenceType)xmlObject});
try
{
publish(buildManagementEvent(creationNotificationDocument));
}
catch (Exception e)
{
if (LOG.isDebugEnabled())
{
LOG.debug("Publishing of the notification: " + creationNotificationDocument.toString() + " failed.", e);
}
}
}
else
{