I'm trying to use delegate roles. I have complete all the steps for multi-tenancy, but my custom connection is never applied.

I modify the pentahoObjects.spring.xml file with:
<bean id="connection-MDXOlap4j" class="delegatingrolepackage.CustomMDXOlap4jConnection" scope="prototype">  <property name="useExtendedColumnNames" value="true" /> </bean>
But it's not applied. Whatsmore, if I comment all the connections beans, everything seems to continue working, so that code doesn't do anything. Where Should I set the used connection?