write the descriptor class to a DOM tree and return it
Element locale = (Element) super.writeDescriptor(parent, nodeName, descriptor);
// description?
appendTextChild(locale, RuntimeTagNames.DESCRIPTION, descriptor.getDescription());
// locale, agent, charset attributes
setAttribute(locale, RuntimeTagNames.LOCALE, (String) descriptor.getAttributeValue(LocaleCharsetMap.LOCALE));
setAttribute(locale, RuntimeTagNames.AGENT, (String) descriptor.getAttributeValue(LocaleCharsetMap.AGENT));
setAttribute(locale, RuntimeTagNames.CHARSET, (String) descriptor.getAttributeValue(LocaleCharsetMap.CHARSET));
return locale;