Vaadin14: How to get base directory?

In Vaadin8 I could get the path for the base directory with

VaadinService.getCurrent().getBaseDirectory().getAbsolutePath()

How can I do this in Vaadin14?
:weary:

https://vaadin.com/forum/thread/17283562/how-to-get-the-absolute-path-in-vaadin-10