configRegistry.beginTransaction();
if (configRegistry.resourceExists(serviceResourcePath)) {
Resource serviceResource = configRegistry.get(serviceResourcePath);
serviceResource.setProperty(propertyName, propertyValue);
configRegistry.put(serviceResourcePath, serviceResource);
serviceResource.discard();
}
configRegistry.commitTransaction();
} catch (Throwable e) {
handleExceptionWithRollback("Unable to set property " + propertyName
+ " to service group " + serviceGroup.getServiceGroupName(), e);