I have the following code, in which I wanna override the next to have some custom logic. It doesn\'t work this way, but only works if the next is a pro
next