if (term.getTermType() == IStrategoTerm.LIST)
{
List<IStrategoTerm> l = new ArrayList<IStrategoTerm>();
for (Iterator<IStrategoTerm> it = new StrategoListIterator((IStrategoList) term);
it.hasNext(); )
l.add(it.next());
return l;
}
throw new MatchError(term, "list");