if (messages.size() == 1) {
errorMessage = String.format("A problem was found with the configuration of %s.", task);
} else {
errorMessage = String.format("Some problems were found with the configuration of %s.", task);
}
state.executed(new TaskValidationException(errorMessage, causes));
return;
}
executer.execute(task, state, context);
}