title: JAXB @XmlJavaTypeAdapter usage
body: <p>I had been struggling to have <code>@XMLJavaTypeAdapter</code> to make it working as per my need. I could be wrong with my understanding. Please help me to understand in better way.</p>
  
  <p>Requirement:
  For example:
  I have a transport XML with list of mappings objects as below:</p>
  
  <pre><code>&lt;transport&gt;
      &lt;mappings&gt;
          &lt;product&gt;XXX&lt;/product&gt;
          &lt;eventName&gt;XXX&lt;/eventName&gt;
          &lt;destination&gt;XXX&lt;/destination&gt;
          &lt;destinationType&gt;XXX&lt;/destinationType&gt;
      &lt;/mappings&gt;
  &lt;/transport&gt;
  </code></pre>
  
  <p>Using JAXB, I am able to read XML as a <code>List&lt;Mappings&gt;</code> objects.</p>
  
  <p>I would like to have my in-memory representation of <code>List&lt;Mappings&gt;</code> as a <code>Map&lt;String,Mappings&gt;</code>, where key in map is product:eventName and Use in my code Map instead of <code>List&lt;Mapping&gt;</code>.</p>
  
  <p>I am bit confused with usage of <code>@XmlJavaTypeAdapter</code> and not able to figure out How can i achieve this.</p>
  
  <p>Any help in this regard would be highly appreciated.</p>
  
  <p>Thanks
  Raj</p>