Adding support for the addBeans method