public void updateConfigurationProperty(String propertyName, String value) throws RegistryException {
String resourcePath = ServiceStatisticsPublisherConstants.STATISTISTICS_REG_PATH + propertyName;
Resource resource;
if (!registry.resourceExists(resourcePath)) {
resource = registry.newResource();
resource.addProperty(propertyName, value);
registry.put(resourcePath, resource);
} else {
resource = registry.get(resourcePath);
resource.setProperty(propertyName, value);
registry.put(resourcePath, resource);