title: Spring collection merge
body: <p>I have two lists generated with a FactoryBean and I would like to initialize a bean with the merged version of this two. Is there a way doing this?</p>
  
  <pre><code>&lt;bean id="listA" class="XFactoryBean" &gt;
    ...
  &lt;/bean&gt;
  &lt;bean id="listB" class="YFactoryBean"&gt;
    ...
  &lt;/bean&gt;
  &lt;bean &gt;
    &lt;property name="AwithB" ...&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>There is a solution that works with static lists (<a href="http://vikdor.blogspot.hu/2012/10/using-collection-merging-in-spring-to.html" rel="nofollow">http://vikdor.blogspot.hu/2012/10/using-collection-merging-in-spring-to.html</a>), but does not work with those generated lists.</p>