//CHECKSTYLE:ON
super.validateSubscription(subscribeRequest);
// TODO: implement raw notifications
if (useRaw) {
SubscribeCreationFailedFaultType fault = new SubscribeCreationFailedFaultType();
throw new SubscribeCreationFailedFault("Raw notifications are not supported", fault);
}
try {
consumer = WSNHelper.getInstance().getPort(subscribeRequest.getConsumerReference(),
NotificationConsumer.class);
} catch (Exception e) {
SubscribeCreationFailedFaultType fault = new SubscribeCreationFailedFaultType();
throw new SubscribeCreationFailedFault("Unable to resolve consumer reference endpoint", fault, e);
}
}