code: private final int getNextPathNum()
  	{
  		final int next = this.nextPath;
  		final int newNext = next + 1;
  		this.nextPath = newNext >= this.paths.length ? 0 : newNext;
  		return next;
  	}
docs: ========================================================================