title: EclipseLink Moxy unmarshall Collection with different Element names
body: <p>I have a class which contains an ArrayList(SuperClass) property. Now I wish to unmarshall the following XML file which contains different element names in that collection because these are subclasses of the Superclass. Is there a way of doing this with Moxy?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SmMessageSet xmlns:nav="urn:ccsds:recommendation:navigation:schema:ndmxml:R1.5"
      xmlns="urn:ccsds:recommendation:service_management:schema:sccs:R1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:ccsds:recommendation:service_management:schema:sccs:R1.0 file:/C:/CCSDS-910.11-B-1_XML_schemas/CCSDS-910.11-B-1_XML_schemas/SmSchema-v1.0.0.xsd"&gt;
      &lt;sccsSmVersionRef&gt;sccsSmVersionRef0&lt;/sccsSmVersionRef&gt;
      &lt;smSource&gt;smSource0&lt;/smSource&gt;
      &lt;smDestination&gt;smDestination0&lt;/smDestination&gt;
      &lt;serviceAgreementRef&gt;serviceAgreementRef0&lt;/serviceAgreementRef&gt;
      &lt;smMessages&gt;
          &lt;querySpaceCommunicationServiceProfileFailedReturn&gt;
              &lt;messageSequenceNumber&gt;50&lt;/messageSequenceNumber&gt;
              &lt;messageTimestamp&gt;2006-05-04T18:13:51.0&lt;/messageTimestamp&gt;
              &lt;invocationMessageSequenceNumber&gt;50&lt;/invocationMessageSequenceNumber&gt;
              &lt;spaceCommunicationServiceProfileRef&gt;spaceCommunicationServiceProfileRef0
              &lt;/spaceCommunicationServiceProfileRef&gt;
              &lt;qscspError&gt;
                  &lt;erroredItem&gt;erroredItem0&lt;/erroredItem&gt;
                  &lt;diagnostic&gt;operation timeout&lt;/diagnostic&gt;
              &lt;/qscspError&gt;
              &lt;qscspError&gt;
                  &lt;erroredItem&gt;erroredItem1&lt;/erroredItem&gt;
                  &lt;diagnostic&gt;operation timeout&lt;/diagnostic&gt;
              &lt;/qscspError&gt;
          &lt;/querySpaceCommunicationServiceProfileFailedReturn&gt;
          &lt;createUserAccountInvocation1&gt;
              &lt;messageSequenceNumber&gt;50&lt;/messageSequenceNumber&gt;
              &lt;messageTimestamp&gt;2006-05-04T18:13:51.0&lt;/messageTimestamp&gt;
              &lt;username&gt;createdUser&lt;/username&gt;
              &lt;password&gt;createdPassword&lt;/password&gt;
              &lt;firstname&gt;Test&lt;/firstname&gt;
              &lt;lastname&gt;User&lt;/lastname&gt;
              &lt;email&gt;test.user@host.de&lt;/email&gt;
              &lt;role&gt;SCHEDULING_OFFICER&lt;/role&gt;
              &lt;superuser&gt;0&lt;/superuser&gt;
          &lt;/createUserAccountInvocation1&gt;
      &lt;/smMessages&gt;
  &lt;/SmMessageSet&gt;
  </code></pre>
  
  <p>The querySpaceCommunicationServiceProfileFailedReturn and createUserAccountInvocation are in my java object model subclasses of SmMessage base class, which is held by the SmMessageSet class in an, as above described, ArrayList of SmMessage classes.</p>
  
  <p>I would also like to not change the current XML structure (i.e. create a wrapper element around the SmMessages in the XML file).</p>
  
  <p>Any help would be appreciated :)</p>