title: XStream Alias of List root elements
body: <p>I want to be able to alias the root list element depending upon what type of objects are contained in the list.  For example, this is my current output:</p>
  
  <pre><code>&lt;list&gt;
  &lt;coin&gt;Gold&lt;/coin&gt;
  &lt;coin&gt;Silver&lt;/coin&gt;
  &lt;coin&gt;Bronze&lt;/coin&gt;
  &lt;/list&gt;
  </code></pre>
  
  <p>And this is what I want it to look like:</p>
  
  <pre><code>&lt;coins&gt;
  &lt;coin&gt;Gold&lt;/coin&gt;
  &lt;coin&gt;Silver&lt;/coin&gt;
  &lt;coin&gt;Bronze&lt;/coin&gt;
  &lt;/coins&gt;
  </code></pre>
  
  <p>I can do this at a global level by saying all lists should be aliased to coins, but I have a lot of different lists and this won't work.  Any ideas on how to do this?  Seems like it should be simple, but of course, it isn't.</p>
  
  <p>EDIT:  I should specify, I am trying to serialize objects to xml.  I am using Spring 3 MVC as my web framework.</p>