detailsMapper.insertInstanceOverrides(updateId, IRange.toBuildersSet(instanceOverrides));
}
// Insert desired state task config and instance mappings.
if (update.getInstructions().isSetDesiredState()) {
IInstanceTaskConfig desired = update.getInstructions().getDesiredState();
detailsMapper.insertTaskConfig(
updateId,
desired.getTask().newBuilder(),
true,
new InsertResult());
detailsMapper.insertDesiredInstances(
updateId,
IRange.toBuildersSet(MorePreconditions.checkNotBlank(desired.getInstances())));
}
// Insert initial state task configs and instance mappings.
if (!update.getInstructions().getInitialState().isEmpty()) {
for (IInstanceTaskConfig config : update.getInstructions().getInitialState()) {