we can also add the beans to a controller, in its definition in controller section of mg.xml:
&lt;controller beans=&quot;...&quot; type=&quot;...&quot; beans=&quot;...&gt;
this way we don't affect any code
salvatore