Using UIProvider with Constructor

Hello,
I have read the tutorial about the UIProvider (
Link
) and tried to use this in my application. However I came across a problem where I am currently lost:
How can I call the UI with an constructor?

Thank you for any help,
Florian

Override UIProvider.createInstance().