for (final Object obj : services) {
if (obj instanceof ServiceResource) {
final ServiceResource service = (ServiceResource) obj;
final ConfigResponse config = service.getProductConfig();
final String dfValue = config.getValue(dynamicFieldName);
final Matcher m = dynamicFieldPattern.matcher(dfValue);
if (m.matches() && m.groupCount() > 0) {
final String constantFieldValue = m.group(1);
config.setValue(dynamicFieldName, constantFieldValue);
final String formatedFieldValue = formatFieldValue(targetFormat, constantFieldValue);
final String name = formatAutoInventoryName(service.getType(),
serverConfig, config, null);
config.setValue(dynamicFieldName, formatedFieldValue);
service.setName(name);
service.setProductConfig(config);
logInfo(log, "Found dynamic field value '", dfValue, "', converted it into '", formatedFieldValue, "'.");