You can also have the &quot;beans&quot; attribute on the XML configuration for the controller in your MG.xml file.  I find that is better from the documentation perspective since all MG config information is in one place, but its nice to have options.