if (!(m instanceof EventPublisherMediator)) {
handleException("Unsupported mediator passed in for serialization : " + m.getType());
}
EventPublisherMediator mediator = (EventPublisherMediator) m;
OMElement elmEventPublisher = fac.createOMElement("eventPublisher", synNS);
if (mediator.getEventSourceName() != null) {
elmEventPublisher.addAttribute(fac.createOMAttribute(
"eventSourceName", nullNS, mediator.getEventSourceName()));
} else {
handleException("Invalid EventPublisher mediator. Event Source Name required");
}
saveTracingState(elmEventPublisher, mediator);