Added support for nested Beans