Is anyone aware of a programmatic equivalent (or a set of programmatic steps that can acheive something similar) to the following:

<util:set id="Beans">
<ref bean="beanNameA" />
<ref bean="beanNameB" />
</util:set>