Modifying the "Unsupported Browser" page wiki

In my code I am translating this inital message as describe in this wiki ‘Modifying the “Unsupported Browser” page’. Everything works fine as expected.
The only thing that warns me is it use VaadinSession.getCurrent().getBrowser(); but is marked as deprecated.

Then, what is the correct way to get the browser info?

regards,

Edison Azzi.

Page.getCurrent().getWebBrowser()