title: XStream: how to marshal/unmarshal lists in a custom converter?
body: <p>I have the following class (legacy; not annotatable) that is serialized with a custom converter:</p>
  
  <pre><code>class Test {
  
      // some other variables
  
      List&lt;SomeType&gt; someTypeList;
  
  }
  </code></pre>
  
  <p>A properly working converter for SomeType is already available. However I want the list to be serialized as if it was annotated with @XStreamAlias("someTypes").</p>
  
  <p>In the end I expect the following format for someTypeList:</p>
  
  <pre><code>&lt;someTypes class="list-type"&gt;
      &lt;someType&gt;
          ....
      &lt;/someType&gt;
      ...
  &lt;/someTypes&gt;
  </code></pre>
  
  <p>How do I have to implement the marshal/unmarshal method to get the desired output? Calling context.convertAnother(someTypeList) didn't yield the expected result as the surrounding <code>&lt;someTypes&gt;</code> tag was missing.</p>