Changed generators to use bean-config-template.xml. TODO:remove Duplicated code.
Added quick hack to generate a missing population bean.