public static List<URI> iteratorToList(URIQueryResultList itr){
  List<URI> uris=new ArrayList<URI>();
  for (  URI uri : itr) {
    uris.add(uri);
  }
  return uris;
}

public static List < URI > iteratorToList ( URIQueryResultList itr ) { List < URI > uris = new ArrayList < URI > ( ) ; for ( URI uri : itr ) { uris . add ( uri ) ; } return uris ; }
utility functions that returns the iterator entries as a list
