public ConfigurationUpdateResponse updateResource(Resource resource, Configuration configuration)
{
ConfigurationUpdateResponse response;
try
{
ConfigurationUpdateRequest request = new ConfigurationUpdateRequest(0, configuration, resource.getId());
response = getConfigService().executeUpdateResourceConfigurationImmediately(request);
if (response.getStatus() == ConfigurationUpdateStatus.SUCCESS)
{
// As ccrouch recalls, we do a service scan to pickup any change to the updated Resource's name.
discoverServicesSync();