code: private TripleIterator getTripleIterator(final Set<Triple> set) {
          return new TripleIterator() {
  
              private final Iterator<Triple> _iter = set.iterator();
  
              @Override
              public boolean hasNext() {
                  return _iter.hasNext();
              }
  
              @Override
              public Triple next() {
                  return getLocalizedTriple(_iter.next());
              }
  
              @Override
              public void close() {
              }
          };
      }
docs: Gets a Trippi TripleIterator for the given set.