SimpleSequence result = new SimpleSequence(val.size());
for (int i=0; i<values.size(); i++) {
if (values.get(i) instanceof StringLiteral) {
String s = ((StringLiteral) values.get(i)).getAsString();
try {
TemplateNamespace ns = env.importLib(s, null);
result.add(ns);
}
catch (IOException ioe) {
throw new TemplateException("Could not import library '" + s + "', " + ioe.getMessage(), env);
}