Vaadin 8 - set productionMode/debugMode for portlet

Hi,
In servlet it is possibile to set productionMode via ‘createDeploymentConfiguration()’ method (according to thread: https://vaadin.com/forum/thread/7744182/7745416).
In portlet when I extend my class with UI (according to documentation: https://vaadin.com/docs/v8/framework/portal/portal-osgi.html), how can I set production mode? Is there a method similar to ‘createDeploymentConfiguration()’ in the UI class?

Thanks