title: Is there a way to re-use a <util:list> in spring configuration file?
body: <p>I have a bunch of rules to be injected into a set of classes, something like below:</p>
  
  <pre><code>&lt;bean id="rule1" class="com.vikdor.rules.Rule1" /&gt;
  &lt;bean id="rule2" class="com.vikdor.rules.Rule2" /&gt;
  &lt;bean id="rule3" class="com.vikdor.rules.Rule3" /&gt;
  &lt;bean id="rule4" class="com.vikdor.rules.Rule4" /&gt;
  &lt;bean id="rule5" class="com.vikdor.rules.Rule5" /&gt;
  
  &lt;util:list id="commonRules"&gt;
      &lt;ref bean="rule1" /&gt;
      &lt;ref bean="rule3" /&gt;
      &lt;ref bean="rule5" /&gt;
  &lt;/util:list&gt;
  
  &lt;util:list id="normalInvRules"&gt;
     &lt;!-- Include common rules --&gt;
     &lt;ref bean="rule4" /&gt;
  &lt;/util:list&gt;
  
  &lt;util:list id="prepaidInvRules"&gt;
     &lt;!-- Include common rules --&gt;
     &lt;ref bean="rule2" /&gt;
  &lt;/util:list&gt;
  </code></pre>
  
  <p>How can I include the common rules list in the lists corresponding to <code>normalInvRules</code> and <code>prepaidInvRules</code>? </p>
  
  <p>The number of rules (e.g. rule1, rule2 etc.,) are more and the number groups (normalInvRules, prepaidInvRules etc.,) are also more. So, I am wondering if there is a way to avoid repeating the common rules and just list only the specific ones and include the reference to the common list.</p>