Is there a way to trigger the Anchor without using Javascript to simulate t

Hi, I’m currently using Vaadin 14 for our web application. We just upgraded from Vaadin 7 (Yes, a big jump), therefore they deprecate the old time way of download by using sr, String name). I wonder if there is a way to trigger the download with the anchor component. Because the class file that create the download is not the UI file. It’s hard to find the component and trigger with the Javascript. Does any one know what might be the possible solution?