if (markupLanguage == null) {
throw new IllegalStateException();
}
log(MessageFormat.format(Messages.getString("MarkupTask.1"), source), Project.MSG_VERBOSE); //$NON-NLS-1$
StandaloneMarkupValidator markupValidator = StandaloneMarkupValidator.getValidator(markupLanguage);
List<ValidationProblem> problems = markupValidator.validate(markupContent);
int errorCount = 0;
int warningCount = 0;
for (ValidationProblem problem : problems) {
int messageLevel = Project.MSG_ERR;