}
else {
final EndpointReferenceType endpointReference = extractPublisherReference(exchange, message);
Topic topic = extractTopic(exchange, message);
if (topic == null) {
throw new MissingTopicException();
}
ActiveMQPublisherRegistration publisher = getPublisher(endpointReference);
try {
publisher.notify(topic, new MessageFactory() {
public Message createMessage(Session session) throws JMSException {