throw new SubscriptionError(EventingConstants.CODE_REQUESTED_FILTER_UNAVAILABLE, "The requested filter dialect is not supported.");
}
}
// create subscription
EndpointReferenceType epr = new EndpointReferenceType();
AttributedURIType attrURI = new AttributedURIType();
attrURI.setValue(eventSource.getManagerAddress().toString());
epr.setAddress(attrURI);
ReferenceParametersType refParam = new ReferenceParametersType();
JAXBElement idqn = new JAXBElement(new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier"), String.class, generateSubscriptionID().toString());
refParam.getAny().add(idqn);
epr.setReferenceParameters(refParam);
Subscription subscription = new Subscription(eventSource.getNameSpace(), epr, notifyTo, endTo, expires, filter);
subscriptionMapping.get(eventSourceNS).add(subscription);