if (filter != null) {
filter.setResultValue(stringSubscriptionEntry.getValue().getFilterValue());
filter.setSourceXpath(topicXPath);
//evaluatedValue = topicXPath.stringValueOf(mc);
}
if (filter == null || filter.match(event)) {
Subscription subscription = stringSubscriptionEntry.getValue();
Calendar current = Calendar.getInstance(); //Get current date and time
if (subscription.getExpires() != null) {
if (current.before(subscription.getExpires())) {
// add only valid subscriptions by checking the expiration