Move the reading of the leader into hasNext. Otherwise next() might fail. Considerin...