How to find the current VU iteration number in functional script

I need to know the interation number of current VU in eggplant functional programmatically. This information is available in TestContol log file. How to get this info in functional during run time.

I found the answer here: VirtualUserScript contains required public methods like getNumberOfIterations(),