Actually VariableResolver works , however it is difficult to find how to use it correctly.
Firstly, I had to include the header in the .zul file:
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
Then use $ {controllerBeanName} in the apply attribute , fe
<window id="win" title="Typy mieszkań" width="750px" border="normal"
apply="${appartmentTypeController}">
appartmentTypeController - bean, GeneralForwardComposer, spring.