for (String key : properties.keySet()) {
subscriptionResource.setProperty(key, properties.get(key));
}
userRegistry.put(subscriptionPath, subscriptionResource);
} else {
throw new EventBrokerException("Can not find the resouce to the subscription with" +
" id " + subscription.getId());
}
} catch (RegistryException e) {
throw new EventBrokerException("Can not access the registry ", e);
}
}