//
// find the subscription resource, use the SubscriptionManager capability
// to set property values
//
WsResource subResource = (WsResource)getResourceManager().getResource(subEPR);
SubscriptionManager sub = (SubscriptionManager)subResource.getCapability(WsnConstants.SUBSCRIPTION_MGR_URI);
sub.setConsumerReference(consumerEPR);
sub.setProducerReference(producerEPR);
sub.setFilter(filter);
getNotificationProducer().addSubscription(subResource);
return subResource;
}