</BUG>
}
}
CommandInfo.Builder cmdBuilder = CommandInfo.newBuilder(existingCommandInfo);
<BUG>cmdBuilder.setEnvironment(envBuilder.build());
</BUG>
taskBuilder.clearData();
taskBuilder.setData(cmdBuilder.build().toByteString());
return taskBuilder;
} catch (InvalidProtocolBufferException e) {

final CommandInfo existingCommandInfo = CommandInfo.parseFrom(taskBuilder.getData());
for (Variable variable : existingCommandInfo.getEnvironment().getVariablesList()) {
if (variable.getName().equals(CONFIG_ID_KEY)) {
envMap.put(CONFIG_ID_KEY, configName);
} else {
envMap.put(variable.getName(), variable.getValue());
}
}
CommandInfo.Builder cmdBuilder = CommandInfo.newBuilder(existingCommandInfo);
cmdBuilder.setEnvironment(environment(envMap));
taskBuilder.clearData();
taskBuilder.setData(cmdBuilder.build().toByteString());
return taskBuilder;
} catch (InvalidProtocolBufferException e) {
