for (Label label : taskBuilder.getLabels().getLabelsList()) {</BUG>
String key = label.getKey();
String value = label.getValue();
if (!key.equals(CONFIG_TARGET_KEY)) {
<BUG>labelBuilder.addLabel(key, value);
}</BUG>
}
<BUG>labelBuilder.addLabel(CONFIG_TARGET_KEY, configName);

taskBuilder.setLabels(labelBuilder.build());
</BUG>
return taskBuilder;

taskBuilder.clearResources();
taskBuilder.addAllResources(updatedResources);
return taskBuilder;
}
private TaskInfo.Builder updateConfigTarget(TaskInfo.Builder taskBuilder, String configName) {
Map<String, String> labelMap = new HashMap<>();
for (Label label : taskBuilder.getLabels().getLabelsList()) {
String key = label.getKey();
String value = label.getValue();
if (!key.equals(CONFIG_TARGET_KEY)) {
labelMap.put(key, value);
