if (endpoint == null) {
throw new NotificationException(
"Could not find a suitable JBI ServiceEndpoint reference for the consumerReference: "
+ subscribe.getConsumerReference());
}
JBIInvoker invoker = new JBIInvoker(context.getDeliveryChannel(), endpoint, subscribe);
return invoker;
}
catch (MessagingException e) {
throw new NotificationException(e);
}