public Object parse(Element element, Parse parse, Parser parser) {
ObjectDescriptor descriptor = new ObjectDescriptor(ScriptManager.class);
if (element.hasAttribute("default-expression-language")) {
String defaultLanguage = element.getAttribute("default-expression-language");
descriptor.addInjection("defaultExpressionLanguage", new StringDescriptor(defaultLanguage));
}
if (element.hasAttribute("default-script-language")) {
String defaultLanguage = element.getAttribute("default-script-language");
descriptor.addInjection("defaultScriptLanguage", new StringDescriptor(defaultLanguage));
}
ScriptEngineManager scriptEngineManager = new ScriptEngineManager();
List<Element> scriptElements = XmlUtil.elements(element, "script-language");
for (Element scriptElement : scriptElements) {