can you please explain what we are doing in case 2.
what is the need ? how it works ?
(int detail)
Refer this.