private void parseDesc(Element element, ScriptResourceDescriptor desc) {
Element urlElement = XMLTools.getUniqueChild(element, URL_TAG, false);
if (urlElement != null) {
String remoteURL = XMLTools.asString(urlElement);
desc.id.setFullId(false);
Remote script = new Javascript.Remote(desc.id, contextPath, remoteURL, 0);
desc.modules.add(script);
} else {
for (Element localeElt : XMLTools.getChildren(element, "supported-locale")) {
String localeValue = XMLTools.asString(localeElt);
Locale locale = I18N.parseTagIdentifier(localeValue);