public boolean hasNext() {
   return (i < mapping.getSourceCount()) || (mapping.getSourceCount() == -1);
 }