dispatch(topic, xml);
}
}
private void dispatch(TopicExpressionType topic, XmlObject xml) {
NotifyDocument request = NotifyDocument.Factory.newInstance();
Notify notify = request.addNewNotify();
NotificationMessageHolderType messageHolder = notify.addNewNotificationMessage();
EndpointReferenceType producerReference = getProducerReference();
if (producerReference != null) {
messageHolder.setProducerReference((EndpointReferenceType) producerReference.copy());