String description = Util.trimmedBothOrBlank(el.getText());
if (Util.isNullOrTrimmedBlank(description)) {
throw new ExtensionException(ExtensionException.FAILED_TO_PROCESS_DESCRIPTOR,
"The content of the <language> must contain the description of the language in the pack.");
}
packDefinition.addLanguage(new Language(packDefinition, code, description));
} else {
throw new ExtensionException(ExtensionException.FAILED_TO_PROCESS_DESCRIPTOR,
"The <language> element only supports the nested <classpath> elements");
}
}