Restart application in code

Hello!

Can anyone please tell me how do I restart application in my code? Or just refresh view of it

I did find solution by myself. Hope it’s ok.

Here it is:

SOLUTION

Your link is not very helpful, since that blog was deleted.

This method does the thing:
com.vaadin.Application.close()