I called a getElements method which returns Iterable.
getElements
Iterable
I did this:
List elements = (List
why not:
Iterable i = ...; //is what you have List myList = new LinkedList(); for (Element e:i) { myList.add(e); }
? needs no google lib.