The answer is that I needed to change my approach and use ThymeLeaf Layout Dialect. I registered additional template engine in Spring configuration files:
<bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine">
<property name="additionalDialects">
<set>
<bean class="nz.net.ultraq.thymeleaf.LayoutDialect"/>
</set>
</property>
</bean>
and change declaration on the top of html to:
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorator="layout.html">
Hope it will help somebody.