private boolean isBaseNotification(final Exchange exchange) {
   if (exchange == null
       || exchange.getInterfaceName() == null
       || exchange.getInterfaceName().getNamespaceURI() == null) {
     return false;
   }
   return WS_BASE_NOTIFICATION_WSDL_NAMESPACE_URI.equals(
       exchange.getInterfaceName().getNamespaceURI());
 }
 @Override
 public boolean onJBIMessage(Exchange exchange) {
   if (isBaseNotification(exchange)) {
     return onNotificationMessage(exchange);
   } else {
     // we are just listening to notifications, reaise exception here...
     exchange.setError(new Exception("The notification listener can only handle notifications"));
   }
   return true;
 }