TemplateEntry nextEntry(){
  if (!hasNext()) {
    throw new NoSuchElementException();
  }
  final TemplateEntry entry=nextEntry;
  nextEntry=null;
  return entry;
}

TemplateEntry nextEntry ( ) { if ( ! hasNext ( ) ) { throw new NoSuchElementException ( ) ; } final TemplateEntry entry = nextEntry ; nextEntry = null ; return entry ; }
returns the next generated entry .
